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 (9 lines) | stat: -rw-r--r-- 328 bytes parent folder | download
1
2
3
4
5
6
7
8
9
file(GLOB tests ../test/*test.c)

foreach(src ${tests})
    get_filename_component(test ${src} NAME_WE)
    add_executable(${test}_c ${src})
    target_include_directories(${test}_c PRIVATE ${CMAKE_SOURCE_DIR}/lib)
    target_link_libraries(${test}_c ${cerf_LIBRARY})
    add_test(NAME ${test}_c COMMAND ${test}_c)
endforeach()