26 lines
840 B
CMake
26 lines
840 B
CMake
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_LIST_DIR})
|
|
cmake_minimum_required(VERSION 3.16)
|
|
cmake_policy(SET CMP0141 NEW)
|
|
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<$<CONFIG:Debug,RelWithDebInfo>:Embedded>")
|
|
project(test_maplibre)
|
|
set(test_maplibre_VERSION 1.0.0)
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
include(third_party/build_infra/start.cmake)
|
|
|
|
|
|
set(test_maplibre_rely global::QMapLibre_qt_5_15_2)
|
|
library_is_installed_with_rely(ok ${test_maplibre_rely})
|
|
if (${ok})
|
|
include(${CMAKE_SOURCE_DIR}/main.cmake)
|
|
else ()
|
|
message("test_maplibre 依赖未安装! 请运行 test_maplibre_env 目标安装所需第三方依赖")
|
|
endif ()
|
|
include(third_party/build_infra/end.cmake)
|
|
rcl_add_dependency_action_targets("test_maplibre_env" ${test_maplibre_rely})
|
|
|
|
else ()
|
|
endif ()
|
|
|
|
|
|
|