11cmake_minimum_required (VERSION 3.24)
2- include (FetchContent )
2+ project (erdblick )
33
44set (CMAKE_CXX_STANDARD 20)
55
@@ -13,45 +13,14 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
1313endif ()
1414
1515# External dependencies.
16-
17- message ("Building for ${CMAKE_SYSTEM_NAME} ." )
18-
19- find_package (glm REQUIRED)
16+ find_package (mapget REQUIRED COMPONENTS model)
17+ find_package (glm REQUIRED)
2018find_package (yaml-cpp REQUIRED)
2119
22- FetchContent_Declare(mapget
23- GIT_REPOSITORY "https://github.com/Klebert-Engineering/mapget"
24- GIT_TAG "relations"
25- GIT_SHALLOW ON )
26- FetchContent_MakeAvailable(mapget)
27-
28- # Fetch cesium-native
29- set (CESIUM_TESTS_ENABLED OFF )
30- set (CESIUM_GLM_STRICT_ENABLED OFF )
31- set (CESIUM_TRACING_ENABLED OFF )
32- set (DRACO_JS_GLUE OFF CACHE BOOL "Disable JS glue for Draco" FORCE)
33- FetchContent_Declare(
34- cesiumnative
35- GIT_REPOSITORY https://github.com/Klebert-Engineering/cesium-native.git
36- GIT_TAG "spdlog-upgrade"
37- GIT_SHALLOW ON )
38- FetchContent_MakeAvailable(cesiumnative)
39-
40- if (NOT TARGET mapget)
41- if (MAPGET_DIR)
42- FetchContent_Declare(mapget
43- SOURCE_DIR "${MAPGET_DIR} "
44- PATCH_COMMAND conan install "${MAPGET_DIR} " -of "${CMAKE_BINARY_DIR} " --build =missing)
45- else ()
46- FetchContent_Declare(mapget
47- GIT_REPOSITORY "https://github.com/Klebert-Engineering/mapget"
48- GIT_TAG "main"
49- GIT_SHALLOW ON
50- PATCH_COMMAND conan install "${MAPGET_DIR} " -of "${CMAKE_BINARY_DIR} " --build =missing)
51- endif ()
52- FetchContent_MakeAvailable(mapget)
53- endif ()
20+ # Cesium
21+ include (cmake/cesium.cmake)
5422
23+ message ("Building for ${CMAKE_SYSTEM_NAME} ." )
5524add_subdirectory (libs/core)
5625
5726if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Emscripten" )
0 commit comments