123456789101112131415161718192021222324252627 |
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenRaider_CXX_FLAGS} -DUNIT_TEST")
- set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${OpenRaider_CXX_FLAGS_DEBUG} -DUNIT_TEST")
- set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${OpenRaider_CXX_FLAGS_RELEASE} -DUNIT_TEST")
-
- add_custom_target (check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
-
- #################################################################
-
- add_executable (tester_binary EXCLUDE_FROM_ALL
- "binary.cpp" "../src/utils/binary.cpp"
- )
- add_dependencies (check tester_binary)
- add_test (NAME test_binary COMMAND tester_binary)
-
- #################################################################
-
- add_executable (tester_script EXCLUDE_FROM_ALL
- "Script.cpp" "../src/Script.cpp"
- "../src/utils/binary.cpp" "../src/utils/strings.cpp"
- )
-
- # Currently not running Script test on make check (for Travis)
- #add_dependencies (check tester_script)
- #add_test (NAME test_script COMMAND tester_script)
-
- #################################################################
|