CMakeLists.txt 612 B

12345678910111213141516171819202122232425262728
  1. set(KIT ${PROJECT_NAME})
  2. create_test_sourcelist(Tests ${KIT}CppTests.cpp
  3. ctkModuleDescriptionTest.cpp
  4. )
  5. SET (TestsToRun ${Tests})
  6. REMOVE (TestsToRun ${KIT}CppTests.cpp)
  7. set(LIBRARY_NAME ${PROJECT_NAME})
  8. add_executable(${KIT}CppTests ${Tests})
  9. target_link_libraries(${KIT}CppTests ${LIBRARY_NAME} ${CTK_BASE_LIBRARIES})
  10. set( KIT_TESTS ${CPP_TEST_PATH}/${KIT}CppTests)
  11. macro( SIMPLE_TEST TESTNAME )
  12. add_test( ${TESTNAME} ${KIT_TESTS} ${TESTNAME} )
  13. set_property(TEST ${TESTNAME} PROPERTY LABELS ${PROJECT_NAME})
  14. endmacro( SIMPLE_TEST )
  15. #
  16. # Add Tests
  17. #
  18. SIMPLE_TEST( ctkModuleDescriptionTest.cpp )