Roman Siromakha 05b2b8da80 CMake for Windows (#339)
* Build with cmake in appveyor

* Install content files and tests binary to bin

* Install SDL2.dll on windows

* Build RecastDemo as GUI application on Windows and Mac OS

* Copy SDL2.dll to current binary dir
2018-06-18 23:11:36 +02:00

13 lines
376 B
CMake

file(GLOB TESTS_SOURCES *.cpp Detour/*.cpp Recast/*.cpp)
include_directories(../Detour/Include)
include_directories(../Recast/Include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(Tests ${TESTS_SOURCES})
add_dependencies(Tests Recast Detour)
target_link_libraries(Tests Recast Detour)
add_test(Tests Tests)
install(TARGETS Tests RUNTIME DESTINATION bin)