2017-02-17 23:11:57 +08:00
|
|
|
cmake_minimum_required(VERSION 3.1)
|
|
|
|
|
|
|
|
# setup antlr
|
|
|
|
option(WITH_LIBCXX "" OFF) # because of debian bug
|
|
|
|
# http://stackoverflow.com/questions/37096062/get-a-basic-c-program-to-compile-using-clang-on-ubuntu-16/38385967#38385967
|
|
|
|
add_subdirectory(antlr4/runtime/Cpp)
|
|
|
|
|
|
|
|
# setup google benchmark
|
|
|
|
add_subdirectory(benchmark)
|
|
|
|
|
|
|
|
# setup fmt format
|
|
|
|
# fmt uses google test but if fmt isn't top project (here it isn't) fmt tests
|
|
|
|
# are disabled (reasonable configuration)
|
|
|
|
add_subdirectory(fmt)
|
|
|
|
|
|
|
|
# setup google test
|
|
|
|
add_subdirectory(googletest)
|
|
|
|
|
2017-05-22 18:31:04 +08:00
|
|
|
# setup google flags
|
2017-06-07 16:15:08 +08:00
|
|
|
set(GFLAGS_BUILD_gflags_nothreads_LIB OFF)
|
|
|
|
set(GFLAGS_BUILD_gflags_LIB ON)
|
2017-05-22 18:31:04 +08:00
|
|
|
add_subdirectory(gflags)
|
|
|
|
|
2017-02-20 08:24:18 +08:00
|
|
|
# setup cppitertools
|
|
|
|
# CLion compatiblity; the target won't be built
|
|
|
|
file(GLOB __CPPITERTOOLS_SOURCES __main.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/libs/cppitertools/*.hpp)
|
|
|
|
add_executable(__cppitertools_target ${__CPPITERTOOLS_SOURCES})
|
|
|
|
set_target_properties(__cppitertools_target PROPERTIES EXCLUDE_FROM_ALL 1)
|