blob: 4009287b35ad3a877c493ad660d13ee4a8ce3c9e [file] [log] [blame]
hardlyb1e7e142014-08-06 00:43:51 +03001cmake_minimum_required(VERSION 2.8)
2
3if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
4 # Clang dies on linking this example - shame... - hope it gets a lot faster in the future
5 # GCC just takes a lot of time - want faster travis builds
6 return()
7endif()
8
onqtama5794882016-03-06 16:36:46 +02009get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
10project(${PROJECT_NAME})
hardlyb1e7e142014-08-06 00:43:51 +030011
onqtam222ecad2016-03-15 11:54:37 +020012include(../../scripts/common.cmake)
hardlyb1e7e142014-08-06 00:43:51 +030013
14include_directories("../../doctest/")
15
16if(MSVC)
17 add_definitions(/bigobj)
18endif()
19
20add_executable(${PROJECT_NAME} main.cpp test.cpp)
21
22add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)