CMakeLists.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. set(SRCS
  2. ctkEventAdminImplTestMain.cpp
  3. )
  4. set(MOC_SRCS )
  5. set(MY_MOC_CXX )
  6. #QT4_WRAP_CPP(MY_MOC_CXX ${MOC_SRCS})
  7. # Create a test for this EventAdmin implementation
  8. set(test_executable ${PROJECT_NAME}CppTests)
  9. set(${test_executable}_DEPENDENCIES ${fw_lib} ${fwtestutil_lib})
  10. set(my_includes)
  11. ctkFunctionGetIncludeDirs(my_includes ${test_executable})
  12. include_directories(${my_includes})
  13. add_executable(${test_executable} ctkEventAdminImplTestMain.cpp)
  14. target_link_libraries(${test_executable}
  15. ${${test_executable}_DEPENDENCIES}
  16. )
  17. add_dependencies(${test_executable} ${PROJECT_NAME} ${eventadmin_test})
  18. add_test(${PROJECT_NAME}Tests ${CPP_TEST_PATH}/${test_executable})
  19. set_property(TEST ${PROJECT_NAME}Tests PROPERTY LABELS ${PROJECT_NAME})
  20. # Create a performance test for this EventAdmin implementation
  21. set(test_executable ${PROJECT_NAME}PerfTests)
  22. set(${test_executable}_DEPENDENCIES ${fw_lib} ${fwtestutil_lib})
  23. #set(my_includes)
  24. #ctkFunctionGetIncludeDirs(my_includes ${test_executable})
  25. #include_directories(${my_includes})
  26. add_executable(${test_executable} ctkEventAdminImplPerfTestMain.cpp)
  27. target_link_libraries(${test_executable}
  28. ${${test_executable}_DEPENDENCIES}
  29. )
  30. add_dependencies(${test_executable} ${PROJECT_NAME} ${eventadmin_perftest})
  31. add_test(${PROJECT_NAME}PerfTests ${CPP_TEST_PATH}/${test_executable})
  32. set_property(TEST ${PROJECT_NAME}PerfTests PROPERTY LABELS ${PROJECT_NAME})