blob: 1603629d38fda8782ad21e85af549af9d71e75b8 [file] [log] [blame]
hardlyb1e7e142014-08-06 00:43:51 +03001cmake_minimum_required(VERSION 2.8)
2
onqtama5794882016-03-06 16:36:46 +02003get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
4project(${PROJECT_NAME})
hardlyb1e7e142014-08-06 00:43:51 +03005
onqtam222ecad2016-03-15 11:54:37 +02006include(../../scripts/common.cmake)
hardlyb1e7e142014-08-06 00:43:51 +03007
8add_definitions(-DDOCTEST_CONFIG_SHORT_MACRO_NAMES)
9
10include_directories("../../doctest/")
11
12add_executable(${PROJECT_NAME} main.cpp)
13
14add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}> -dt-count=1)