mirror of https://github.com/openXC7/prjxray.git
27 lines
605 B
CMake
27 lines
605 B
CMake
cmake_minimum_required(VERSION 3.5.0)
|
|
|
|
project(prjxray)
|
|
option(PRJXRAY_BUILD_TESTING "" ON)
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
add_compile_options(-Wall -Werror)
|
|
|
|
# Hack for missing option in cctz
|
|
option(BUILD_TESTING "" OFF)
|
|
|
|
|
|
if(PRJXRAY_BUILD_TESTING)
|
|
enable_testing()
|
|
add_compile_options(-O0 -g)
|
|
else()
|
|
add_compile_options(-O3)
|
|
endif()
|
|
|
|
add_subdirectory(third_party/googletest EXCLUDE_FROM_ALL)
|
|
add_subdirectory(third_party/gflags EXCLUDE_FROM_ALL)
|
|
add_subdirectory(third_party/cctz EXCLUDE_FROM_ALL)
|
|
add_subdirectory(third_party/abseil-cpp EXCLUDE_FROM_ALL)
|
|
|
|
add_subdirectory(lib)
|
|
add_subdirectory(tools)
|