2015-04-12 16:13:21 +02:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
2015-04-09 20:41:27 +02:00
|
|
|
project(mstch)
|
2015-04-12 16:13:21 +02:00
|
|
|
option (WITH_UNIT_TESTS "enable building unit test executable" OFF)
|
2015-04-13 16:35:12 +02:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -O3")
|
2015-04-12 15:25:16 +02:00
|
|
|
add_subdirectory(src)
|
2015-04-12 16:13:21 +02:00
|
|
|
if(WITH_UNIT_TESTS)
|
|
|
|
enable_testing()
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|