[go: up one dir, main page]

File: CMakeLists.txt

package info (click to toggle)
libformfactor 0.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,288 kB
  • sloc: cpp: 17,289; python: 382; makefile: 15
file content (17 lines) | stat: -rw-r--r-- 688 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
add_library(catch2 3rdparty/catch2.cpp)
target_include_directories(catch2 PRIVATE 3rdparty)

file(GLOB test_sources "*.cpp")

if (WIN32)
    add_compile_options(/wd4068 /wd4623 /wd4625 /wd4626 /wd4710 /wd4711 /wd4820 )
endif()

foreach(source_file ${test_sources})
    get_filename_component(base_name ${source_file} NAME_WE)
    add_executable(${base_name} "${source_file}" util/RunMultiQ.cpp)
    target_include_directories(${base_name}
        PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_SOURCE_DIR}" "${LibHeinz_INCLUDE_DIR}")
    target_link_libraries(${base_name} PRIVATE ${formfactor_LIBRARY} catch2)
    add_test(NAME ${base_name} COMMAND ${base_name})
endforeach(source_file)