esri_assignment/CMakeLists.txt

30 lines
710 B
CMake
Raw Permalink Normal View History

2021-06-26 09:15:57 +02:00
cmake_minimum_required(VERSION 3.11)
2021-06-17 20:14:50 +02:00
project(EsriAssignment)
set(CMAKE_CXX_STANDARD 17)
2021-06-26 09:15:57 +02:00
include(FetchContent)
FetchContent_Declare(json
GIT_REPOSITORY https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent
GIT_TAG v3.9.1)
FetchContent_GetProperties(json)
if(NOT json_POPULATED)
FetchContent_Populate(json)
add_subdirectory(${json_SOURCE_DIR} ${json_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
2021-06-17 20:14:50 +02:00
find_package(Protobuf REQUIRED)
include_directories(${PROTOBUF_INCLUDE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory(protocol_buffers_definitions)
include_directories(src)
add_subdirectory(src)
2021-06-28 00:08:40 +02:00
if (BUILD_TESTING)
enable_testing()
add_subdirectory(tests)
endif()