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.

21 lines
949 B

  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. register_source_groups_from_filestructure("${STORM_FUNCTIONAL_TEST_FILES}")
  6. add_executable(storm-functional-tests ${STORM_FUNCTIONAL_TEST_MAIN_FILE} ${STORM_FUNCTIONAL_TEST_FILES})
  7. target_link_libraries(storm-functional-tests storm)
  8. add_dependencies(storm-functional-tests test-resources)
  9. include_directories(${GTEST_INCLUDE_DIR})
  10. enable_testing()
  11. target_link_libraries(storm-functional-tests ${STORM_TEST_LINK_LIBRARIES})
  12. add_test(NAME storm-functional-tests COMMAND storm-functional-tests)
  13. INSTALL(TARGETS storm-functional-tests
  14. RUNTIME DESTINATION bin
  15. LIBRARY DESTINATION lib
  16. ARCHIVE DESTINATION lib
  17. )