hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 1 | cmake_minimum_required(VERSION 2.8)
|
| 2 |
|
| 3 | if(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()
|
| 7 | endif()
|
| 8 |
|
onqtam | a579488 | 2016-03-06 16:36:46 +0200 | [diff] [blame] | 9 | get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
| 10 | project(${PROJECT_NAME})
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 11 |
|
onqtam | 222ecad | 2016-03-15 11:54:37 +0200 | [diff] [blame] | 12 | include(../../scripts/common.cmake)
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 13 |
|
| 14 | include_directories("../../doctest/")
|
| 15 |
|
| 16 | if(MSVC)
|
| 17 | add_definitions(/bigobj)
|
| 18 | endif()
|
| 19 |
|
| 20 | add_executable(${PROJECT_NAME} main.cpp test.cpp)
|
| 21 |
|
| 22 | add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
|