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 | include_directories("../../doctest/") | ||||
9 | |||||
10 | add_executable(${PROJECT_NAME} main.cpp) | ||||
11 | |||||
12 | add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>) |