2017-02-08 16:32:55 +00:00
|
|
|
project(mycurry_unit_test CXX)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
main.cpp
|
2017-02-08 16:39:46 +00:00
|
|
|
grid_raytrace.cpp
|
2017-02-08 16:32:55 +00:00
|
|
|
)
|
2017-02-09 18:11:09 +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
|
2017-02-09 18:11:09 +00:00
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
add_test(
|
|
|
|
NAME CloonelJumpTest
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMAND ${PROJECT_NAME}
|
|
|
|
)
|
|
|
|
|
2017-02-09 18:11:09 +00:00
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
PRIVATE mycurry_gamelib
|
|
|
|
)
|