加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 774 Bytes
一键复制 编辑 原始数据 按行查看 历史
heyuming 提交于 2023-06-16 14:35 . feat(build): support Qt6
cmake_minimum_required(VERSION 3.13)
set(DTK_VERSION
"5.6.12"
CACHE STRING "define project version"
)
project(DtkWidget
VERSION ${DTK_VERSION}
DESCRIPTION "DTK Widget module"
HOMEPAGE_URL "https://github.com/linuxdeepin/dtkwidget"
LANGUAGES CXX C
)
# Set install path
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX /usr)
endif()
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)
if("${PROJECT_VERSION_MAJOR}" STREQUAL "5")
set(QT_VERSION_MAJOR 5)
include(dtkwidget.cmake)
elseif("${PROJECT_VERSION_MAJOR}" STREQUAL "6")
set(QT_VERSION_MAJOR "6")
set(DTK_VERSION_MAJOR "6")
include(dtkwidget.cmake)
else()
message(SEND_ERROR "not support Prject Version ${PROJECT_VERSION}.")
endif()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化