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 |
|
onqtam | 222ecad | 2016-03-15 11:54:37 +0200 | [diff] [blame] | 6 | include(../../scripts/common.cmake)
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 7 |
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 8 | include_directories("../../doctest/")
|
| 9 |
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame] | 10 | add_executable(${PROJECT_NAME} main.cpp test.cpp)
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 11 |
|
onqtam | 7f41450 | 2016-05-12 17:14:49 +0300 | [diff] [blame] | 12 | add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}> -dt-count)
|