File: CMakeLists.txt

package info (click to toggle)
libcerf 3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 760 kB
  • sloc: ansic: 4,905; f90: 250; makefile: 18
file content (11 lines) | stat: -rw-r--r-- 461 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
file(GLOB tests ../test/*test.c)

foreach(src ${tests})
    set_property(SOURCE ${src} PROPERTY LANGUAGE CXX)
    get_filename_component(test ${src} NAME_WE)
    add_executable(${test}_cpp ${src})
    target_include_directories(${test}_cpp PRIVATE ${CMAKE_SOURCE_DIR}/lib)
    set_property(TARGET ${test}_cpp PROPERTY LINKER_LANGUAGE CXX)
    target_link_libraries(${test}_cpp ${cerfcpp_LIBRARY})
    add_test(NAME ${test}_cpp COMMAND ${test}_cpp)
endforeach()