onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 1 | cmake_minimum_required(VERSION 2.8) |
2 | |||||
3 | get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME) | ||||
4 | project(${PROJECT_NAME}) | ||||
5 | |||||
6 | include(../../scripts/common.cmake) | ||||
7 | |||||
8 | include_directories("../../doctest/") | ||||
9 | |||||
10 | add_executable(${PROJECT_NAME} main.cpp test.cpp) | ||||
11 | |||||
onqtam | db5eee9 | 2016-09-15 17:12:50 +0300 | [diff] [blame] | 12 | doctest_add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>) |