-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
56 lines (43 loc) · 885 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
cmake_minimum_required(VERSION 3.10)
project(geojson-cpp)
set(CMAKE_CXX_STANDARD 20)
add_library(
geojson-cpp
STATIC
src/maplibre/geojson.cpp
)
include_directories(include)
include(FetchContent)
FetchContent_Declare(
geometry-hpp
GIT_REPOSITORY https://github.com/maplibre/geometry.hpp
GIT_TAG origin/main
EXCLUDE_FROM_ALL
)
FetchContent_MakeAvailable(geometry-hpp)
include_directories(SYSTEM ${geometry-hpp_SOURCE_DIR}/include)
FetchContent_Declare(
rapidjson
GIT_REPOSITORY https://github.com/Tencent/rapidjson.git
GIT_TAG v1.1.0
SYSTEM
EXCLUDE_FROM_ALL
)
FetchContent_MakeAvailable(rapidjson)
include_directories(SYSTEM ${rapidjson_SOURCE_DIR}/include)
add_executable(
test
test/test.cpp
)
target_link_libraries(
test
geojson-cpp
)
add_executable(
test_value
test/test_value.cpp
)
target_link_libraries(
test_value
geojson-cpp
)