1 Star 0 Fork 21

飞的更高/qgis_cpp_api_apps

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
liuleidong 提交于 2024-06-19 16:30 . add qgis_app test demo
cmake_minimum_required(VERSION 3.14)
project(qgis_cpp_api_apps VERSION "1.0.0.0")
project(qgis_cpp_api_apps LANGUAGES CXX)
include_directories(${PROJECT_SOURCE_DIR}/inc) # 指定头文件搜索路径
if(WIN32)
MESSAGE(STATUS "Now is windows")
# add_compile_options(/W4)
add_compile_options(/wd4819)
add_definitions(-D_USE_MATH_DEFINES)
include_directories(${PROJECT_SOURCE_DIR}/thirdparty/windows/qgis-ltr-dev/include)
include_directories(${PROJECT_SOURCE_DIR}/thirdparty/windows/gdal/include)
link_directories(${PROJECT_SOURCE_DIR}/thirdparty/windows/qgis-ltr-dev/lib/) # 指定库搜索路径
ELSEIF(UNIX)
MESSAGE(STATUS "Now is UNIX-like OS's.")
include_directories(${PROJECT_SOURCE_DIR}/thirdparty/linux/gdal/include)
include_directories(${PROJECT_SOURCE_DIR}/thirdparty/linux/qgis/include/qgis)
include_directories(${PROJECT_SOURCE_DIR}/thirdparty/linux/qgis/include/qgis_app)
include_directories(${PROJECT_SOURCE_DIR}/thirdparty/linux/qgis/include/ui)
link_directories(${PROJECT_SOURCE_DIR}/thirdparty/linux/qgis/lib/) # 指定库搜索路径
ENDIF()
link_directories(${PROJECT_SOURCE_DIR}/bin) # 指定库搜索路径
# 指定 编译子目录
add_subdirectory(./src/ll_qgis_base_lib)
add_subdirectory(./src/ll_qgis_hello)
add_subdirectory(./src/ll_qgis_code_examples)
add_subdirectory(./src/ll_qgis_uav_realtime)
add_subdirectory(./src/ll_qgis_app_demo)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/wzg866/qgis_cpp_api_apps.git
git@gitee.com:wzg866/qgis_cpp_api_apps.git
wzg866
qgis_cpp_api_apps
qgis_cpp_api_apps
master

搜索帮助