hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 1 | cmake_minimum_required(VERSION 2.8)
|
| 2 |
|
onqtam | a579488 | 2016-03-06 16:36:46 +0200 | [diff] [blame^] | 3 | get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
| 4 | project(${PROJECT_NAME})
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 5 |
|
| 6 | include(../../scripts/flags.cmake)
|
| 7 |
|
| 8 | add_definitions(-DDOCTEST_CONFIG_SHORT_MACRO_NAMES)
|
| 9 |
|
| 10 | include_directories("../../doctest/")
|
| 11 |
|
| 12 | add_executable(${PROJECT_NAME} main.cpp)
|
| 13 |
|
| 14 | add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}> -dt-count=1)
|