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