2017-06-03 20:16:23 +00:00
|
|
|
project(kamokan_simulation CXX)
|
2017-05-22 19:08:28 +00:00
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
|
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wpedantic -Wconversion -Werror")
|
|
|
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_DEBUG} -Wall -Wpedantic -Wconversion -Werror")
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
check.cpp
|
|
|
|
test_index_response.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PRIVATE ${TAWASHI_SOURCE_ROOT}/lib/Catch/single_include
|
|
|
|
PRIVATE ${TAWASHI_GEN_INCLUDE_DIR}
|
2017-06-05 22:57:47 +00:00
|
|
|
PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/include
|
2017-05-22 19:08:28 +00:00
|
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
2017-06-03 20:16:23 +00:00
|
|
|
PRIVATE tawashi
|
2017-05-22 19:08:28 +00:00
|
|
|
PRIVATE duckhandy
|
|
|
|
)
|
|
|
|
|
|
|
|
add_test(
|
|
|
|
NAME TawashiSimulationTest
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMAND ${PROJECT_NAME}
|
|
|
|
)
|
2017-06-05 22:57:47 +00:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/simulation_config.h.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/include/simulation_config.h
|
|
|
|
)
|