aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 2bce62f6259d4b0630ce6a287138fd2c9b374906 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

macro(use_cxx11)
  if (CMAKE_VERSION VERSION_LESS "3.1")
    if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
      set (CMAKE_CXX_FLAGS "--std=gnu++11 ${CMAKE_CXX_FLAGS}")
    endif ()
  else ()
    set (CMAKE_CXX_STANDARD 11)
  endif ()
endmacro(use_cxx11)

use_cxx11()

add_subdirectory(3rd/gtest-1.7.0)
add_subdirectory(src)
add_subdirectory(test)