CMakeLists.txt

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
if(TARGET felspar-check)
    add_library(felspar-exception-headers-tests STATIC EXCLUDE_FROM_ALL
            bad_alloc.cpp
            exception.cpp
            exceptions.cpp
            length_error.cpp
            logic_error.cpp
            messaging_error.cpp
            overflow_error.cpp
            runtime_error.cpp
            source_annotation.cpp
            system_error.cpp
            underflow_error.cpp
        )
    target_link_libraries(felspar-exception-headers-tests PRIVATE felspar-exceptions)

    add_dependencies(felspar-check felspar-exception-headers-tests)
endif()