mirror of
https://github.com/minecraft-linux/mcpelauncher-manifest
synced 2025-05-19 07:56:40 +00:00
nlohmann_json, glfw allows an external source to be provided (flatpak) Fix glfw dependencies on Linux Add missing header glfw
15 lines
503 B
CMake
15 lines
503 B
CMake
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
nlohmann_json_ext
|
|
URL "https://github.com/nlohmann/json/releases/download/v3.7.3/include.zip"
|
|
)
|
|
|
|
FetchContent_GetProperties(nlohmann_json_ext)
|
|
if(NOT nlohmann_json_ext_POPULATED)
|
|
FetchContent_Populate(nlohmann_json_ext)
|
|
endif()
|
|
|
|
add_library(nlohmann_json INTERFACE IMPORTED)
|
|
add_dependencies(nlohmann_json nlohmann_json_ext)
|
|
set_property(TARGET nlohmann_json PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${nlohmann_json_ext_SOURCE_DIR}/include") |