21 lines
543 B
CMake
21 lines
543 B
CMake
cmake_minimum_required(VERSION 3.25)
|
|
|
|
set(DTK_VERSION "5.6.11" CACHE STRING "define project version")
|
|
project(DtkGui
|
|
VERSION ${DTK_VERSION}
|
|
DESCRIPTION "DTK Gui module"
|
|
HOMEPAGE_URL "https://github.com/linuxdeepin/dtkgui"
|
|
LANGUAGES CXX C
|
|
)
|
|
|
|
if("${PROJECT_VERSION_MAJOR}" STREQUAL "5")
|
|
set(QT_VERSION_MAJOR "5")
|
|
elseif("${PROJECT_VERSION_MAJOR}" STREQUAL "6")
|
|
set(QT_VERSION_MAJOR "6")
|
|
set(DTK_VERSION_MAJOR "6")
|
|
else()
|
|
message(SEND_ERROR "not support Prject Version ${PROJECT_VERSION}.")
|
|
endif()
|
|
|
|
include(dtkgui.cmake)
|