MyCurry/test/unit/CMakeLists.txt

32 lines
778 B
Text
Raw Permalink Normal View History

2017-02-08 16:32:55 +00:00
project(mycurry_unit_test CXX)
add_executable(${PROJECT_NAME}
main.cpp
grid_raytrace.cpp
2017-02-08 16:32:55 +00:00
)
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 14)
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
2017-02-08 16:32:55 +00:00
target_compile_definitions(${PROJECT_NAME}
PRIVATE VWR_WITH_IMPLICIT_CONVERSIONS=1
PRIVATE VWR_EXTRA_ACCESSORS
)
target_include_directories(${PROJECT_NAME}
PRIVATE ${CATCH_SOURCE_DIR}/single_include
PRIVATE ${CMAKE_SOURCE_DIR}/src/gamelib
2017-02-08 16:32:55 +00:00
PRIVATE ${CMAKE_SOURCE_DIR}/lib/vectorwrapper/include
PRIVATE ${CMAKE_SOURCE_DIR}/lib/tree-2.81/src
PRIVATE ${CMAKE_BINARY_DIR}
2017-02-08 16:32:55 +00:00
)
add_test(
NAME CloonelJumpTest
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${PROJECT_NAME}
)
target_link_libraries(${PROJECT_NAME}
PRIVATE mycurry_gamelib
)