1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-20 01:11:46 +02:00
openrw/tests/CMakeLists.txt
Daniel Evans 25f28dbb42 New File handling implementation
- move FileHandle into a separate header
- Implement FileIndex, a system to normalize filenames and sources
2015-02-26 03:57:28 +00:00

28 lines
639 B
CMake

FILE(GLOB TEST_SOURCES
"*.cpp"
"${CMAKE_SOURCE_DIR}/rwengine/tests/*.cpp")
ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK)
add_executable(run_tests ${TEST_SOURCES})
include_directories(include)
include_directories("${CMAKE_SOURCE_DIR}/tests")
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
include_directories("${CMAKE_SOURCE_DIR}/rwengine/include" "${CMAKE_SOURCE_DIR}/rwgame" ${BULLET_INCLUDE_DIR})
target_link_libraries(run_tests
rwengine
sfml-window
sfml-system
sfml-graphics
${OPENGL_LIBRARIES}
GLEW
BulletDynamics
BulletCollision
LinearMath
${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
add_test(UnitTests run_tests)