onqtam | a985f5a | 2017-04-16 22:48:07 +0300 | [diff] [blame] | 1 | cmake_minimum_required(VERSION 3.0) |
| 2 | |
| 3 | project(playground) |
| 4 | |
| 5 | include(../cmake/common.cmake) |
| 6 | |
onqtam | 8cd8b3b | 2017-05-15 00:50:03 +0300 | [diff] [blame] | 7 | include_directories(../../doctest/) |
| 8 | |
| 9 | doctest_add_executable(${PROJECT_NAME} main.cpp test.cpp) |
onqtam | a985f5a | 2017-04-16 22:48:07 +0300 | [diff] [blame] | 10 | |
onqtam | f6370e2 | 2017-05-03 06:38:27 +0300 | [diff] [blame] | 11 | doctest_add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}> -nv) |
onqtam | 7907692 | 2018-05-09 21:22:31 +0300 | [diff] [blame] | 12 | |
| 13 | #add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND $<TARGET_FILE:${PROJECT_NAME}>) |
| 14 | #add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ctest -C $<CONFIGURATION> --output-on-failure) |