blob: c4abdd06b8a104fe8b2179b6b46a8be3917abfef [file] [log] [blame]
cmake_minimum_required(VERSION 3.0)
project(playground)
include(../cmake/common.cmake)
# not using doctest_add_executable because the "doctest" target might not be visible
# since it's defined in the root "CMakeLists.txt" file and not im "common.cmake"
include_directories("../../doctest/")
add_executable(${PROJECT_NAME} main.cpp test.cpp)
add_dependencies(${PROJECT_NAME} assemble_single_header)
doctest_add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)