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 | d320ac2 | 2017-04-17 11:44:32 +0300 | [diff] [blame^] | 7 | # not using doctest_add_executable because the "doctest" target might not be visible |
| 8 | # since it's defined in the root "CMakeLists.txt" file and not im "common.cmake" |
onqtam | a985f5a | 2017-04-16 22:48:07 +0300 | [diff] [blame] | 9 | include_directories("../../doctest/") |
onqtam | d320ac2 | 2017-04-17 11:44:32 +0300 | [diff] [blame^] | 10 | add_executable(${PROJECT_NAME} main.cpp test.cpp) |
| 11 | add_dependencies(${PROJECT_NAME} assemble_single_header) |
onqtam | a985f5a | 2017-04-16 22:48:07 +0300 | [diff] [blame] | 12 | |
| 13 | doctest_add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>) |