You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.5 KiB

  1. # Test Sources
  2. # Note that the tests also need the source files, except for the main file
  3. file(GLOB STORM_FUNCTIONAL_TEST_MAIN_FILE ${STORM_CPP_TESTS_BASE_PATH}/functional/storm-functional-tests.cpp)
  4. file(GLOB_RECURSE STORM_FUNCTIONAL_TEST_FILES ${STORM_CPP_TESTS_BASE_PATH}/functional/*.h ${STORM_CPP_TESTS_BASE_PATH}/functional/*.cpp)
  5. file(GLOB STORM_PERFORMANCE_TEST_MAIN_FILE ${STORM_CPP_TESTS_BASE_PATH}/performance/storm-performance-tests.cpp)
  6. file(GLOB_RECURSE STORM_PERFORMANCE_TEST_FILES ${STORM_CPP_TESTS_BASE_PATH}/performance/*.h ${STORM_CPP_TESTS_BASE_PATH}/performance/*.cpp)
  7. source_group(functional-test FILES ${STORM_FUNCTIONAL_TEST_FILES})
  8. source_group(performance-test FILES ${STORM_PERFORMANCE_TEST_FILES} ${})
  9. add_executable(storm-functional-tests ${STORM_FUNCTIONAL_TEST_MAIN_FILE} ${STORM_FUNCTIONAL_TEST_FILES})
  10. target_link_libraries(storm-functional-tests storm)
  11. add_executable(storm-performance-tests ${STORM_PERFORMANCE_TEST_MAIN_FILE} ${STORM_PERFORMANCE_TEST_FILES})
  12. target_link_libraries(storm-performance-tests storm)
  13. include_directories("${PROJECT_SOURCE_DIR}/resources/3rdparty/gtest-1.7.0/include")
  14. enable_testing()
  15. target_link_libraries(storm-functional-tests gtest)
  16. target_link_libraries(storm-performance-tests gtest)
  17. add_test(NAME storm-functional-tests COMMAND storm-functional-tests)
  18. add_test(NAME storm-performance-tests COMMAND storm-performance-tests)
  19. INSTALL(TARGETS storm-functional-tests storm-performance-tests
  20. RUNTIME DESTINATION bin
  21. LIBRARY DESTINATION lib
  22. ARCHIVE DESTINATION lib
  23. )