CMakeLists.txt 376 B

123456789101112
  1. file(GLOB TESTS_SOURCES *.cpp Detour/*.cpp Recast/*.cpp)
  2. include_directories(../Detour/Include)
  3. include_directories(../Recast/Include)
  4. include_directories(${CMAKE_CURRENT_SOURCE_DIR})
  5. add_executable(Tests ${TESTS_SOURCES})
  6. add_dependencies(Tests Recast Detour)
  7. target_link_libraries(Tests Recast Detour)
  8. add_test(Tests Tests)
  9. install(TARGETS Tests RUNTIME DESTINATION bin)