Open Source Tomb Raider Engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

CMakeLists.txt 1.3KB

12345678910111213141516171819202122232425262728293031323334353637
  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" "../src/main.cpp"
  8. )
  9. add_dependencies (check tester_binary)
  10. add_test (NAME test_binary COMMAND tester_binary)
  11. #################################################################
  12. add_executable (tester_folder EXCLUDE_FROM_ALL
  13. "Folder.cpp" "../src/utils/filesystem.cpp"
  14. "../src/utils/Folder.cpp" "../src/utils/File.cpp"
  15. "../src/Exception.cpp" "../src/main.cpp"
  16. )
  17. #add_dependencies (check tester_folder)
  18. #add_test (NAME test_folder COMMAND tester_folder)
  19. #################################################################
  20. add_executable (tester_script EXCLUDE_FROM_ALL
  21. "Script.cpp" "../src/Script.cpp" "../src/main.cpp"
  22. "../src/utils/binary.cpp" "../src/utils/strings.cpp"
  23. )
  24. #add_dependencies (check tester_script)
  25. #add_test (NAME test_script COMMAND tester_script)
  26. #################################################################