Open Source Tomb Raider Engine
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.

CMakeLists.txt 1.0KB

123456789101112131415161718192021222324252627
  1. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenRaider_CXX_FLAGS} -DUNIT_TEST")
  2. set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${OpenRaider_CXX_FLAGS_DEBUG} -DUNIT_TEST")
  3. set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${OpenRaider_CXX_FLAGS_RELEASE} -DUNIT_TEST")
  4. add_custom_target (check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
  5. #################################################################
  6. add_executable (tester_binary EXCLUDE_FROM_ALL
  7. "binary.cpp" "../src/utils/binary.cpp"
  8. )
  9. add_dependencies (check tester_binary)
  10. add_test (NAME test_binary COMMAND tester_binary)
  11. #################################################################
  12. add_executable (tester_script EXCLUDE_FROM_ALL
  13. "Script.cpp" "../src/Script.cpp"
  14. "../src/utils/binary.cpp" "../src/utils/strings.cpp"
  15. )
  16. # Currently not running Script test on make check (for Travis)
  17. #add_dependencies (check tester_script)
  18. #add_test (NAME test_script COMMAND tester_script)
  19. #################################################################