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.

28 lines
1.6 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. add_dependencies(storm-functional-tests test-resources)
  14. add_dependencies(storm-performance-tests test-resources)
  15. include_directories(${GTEST_INCLUDE_DIR})
  16. enable_testing()
  17. target_link_libraries(storm-functional-tests ${GTEST_LIBRARIES})
  18. target_link_libraries(storm-performance-tests ${GTEST_LIBRARIES})
  19. add_test(NAME storm-functional-tests COMMAND storm-functional-tests)
  20. add_test(NAME storm-performance-tests COMMAND storm-performance-tests)
  21. INSTALL(TARGETS storm-functional-tests storm-performance-tests
  22. RUNTIME DESTINATION bin
  23. LIBRARY DESTINATION lib
  24. ARCHIVE DESTINATION lib
  25. )