blob: 4009287b35ad3a877c493ad660d13ee4a8ce3c9e [file] [log] [blame]
cmake_minimum_required(VERSION 2.8)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
# Clang dies on linking this example - shame... - hope it gets a lot faster in the future
# GCC just takes a lot of time - want faster travis builds
return()
endif()
get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
project(${PROJECT_NAME})
include(../../scripts/common.cmake)
include_directories("../../doctest/")
if(MSVC)
add_definitions(/bigobj)
endif()
add_executable(${PROJECT_NAME} main.cpp test.cpp)
add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)