repo: 调整 cmake 脚本主入口的配方排列顺序

This commit is contained in:
zinface 2023-02-22 11:41:13 +08:00
parent 4a463afbb1
commit b531ed598c
1 changed files with 38 additions and 38 deletions

View File

@ -15,7 +15,7 @@ if(WIN32)
add_compile_definitions(_UNICODE= UNICODE=)
endif()
# ----------------- QSci ----------------- #
# ----------------- QSci ----------------- #
if(TRUE)
include(cmake/modules/QScint.cmake)
endif(TRUE)
@ -27,7 +27,13 @@ if(TRUE)
endif(TRUE)
# ----------------- Notepad-- 线 ----------------- #
option(USE_MACOS_UNIVERSAL "通用 MacOS 平台构建" OFF)
option(USE_WINDOWS_UNIVERSAL "通用 Windows 平台构建" OFF)
option(USE_WINDOWS_MINGW "通用 Windows 平台 MinGW 构建" OFF)
option(USE_WINDOWS_MSVC "通用 Windows 平台 MSVC 构建" OFF)
#
option(WINDOWS_DEPLOY_QT "通用 Windows 平台 Qt 部署" OFF)
option(WINDOWS_DEPLOY_QT5 "通用 Windows 平台指定 Qt5 部署 windeployqt" OFF)
option(WINDOWS_DEPLOY_QT6 "通用 Windows 平台指定 Qt6 部署 windeployqt" OFF)
#
option(USE_LINUX_UNIVERSAL "通用 Linux 平台构建" OFF)
option(USE_LINUX_DEBIAN "通用 Debian Linux 平台构建" OFF)
@ -35,19 +41,34 @@ option(USE_LINUX_APPIMAGE "通用 Appimage Linux 平台构建" OFF)
#
option(USE_LINUX_UOS "独立 Linux 平台的 Uos 构建" OFF)
#
option(USE_WINDOWS_UNIVERSAL "通用 Windows 平台构建" OFF)
option(USE_WINDOWS_MINGW "通用 Windows 平台 MinGW 构建" OFF)
option(USE_WINDOWS_MSVC "通用 Windows 平台 MSVC 构建" OFF)
#
option(WINDOWS_DEPLOY_QT "通用 Windows 平台 Qt 部署" OFF)
option(WINDOWS_DEPLOY_QT5 "通用 Windows 平台指定 Qt5 部署 windeployqt" OFF)
option(WINDOWS_DEPLOY_QT6 "通用 Windows 平台指定 Qt6 部署 windeployqt" OFF)
option(USE_MACOS_UNIVERSAL "通用 MacOS 平台构建" OFF)
# 使 windows.cmake / linux.cmake / macos.cmake .
# 使 macos.cmake / linux.cmake / windows.cmake .
if(APPLE)
# MacOS 平台的构建(一个无具体实现的空构建)
# include(cmake/platforms/macos.cmake)
# Windows MinGW MSVC
if(WIN32)
# Windows
if(USE_WINDOWS_UNIVERSAL)
include(cmake/platforms/windows-universal.cmake)
# Windows windeployqt
include(cmake/platforms/windows-deployqt.cmake)
# Windows MinGW
if(USE_WINDOWS_MINGW)
# include(cmake/platforms/windows-mingw.cmake)
endif()
# Windows MSVC
if(USE_WINDOWS_MSVC)
# include(cmake/platforms/windows-msvc.cmake)
endif()
# Windows
else()
# include(cmake/platforms/windows-other.cmake)
endif(USE_WINDOWS_UNIVERSAL)
# Linux Debian Appimage Uos
elseif(UNIX AND NOT APPLE AND NOT WIN32 AND NOT ANDROID)
@ -72,34 +93,13 @@ elseif(UNIX AND NOT APPLE AND NOT WIN32 AND NOT ANDROID)
# Linux
else()
# include(cmake/platforms/linux.cmake)
# include(cmake/platforms/linux-other.cmake)
endif(USE_LINUX_UNIVERSAL)
# Windows MinGW MSVC
elseif(WIN32)
# Windows
if(USE_WINDOWS_UNIVERSAL)
include(cmake/platforms/windows-universal.cmake)
# Windows windeployqt
include(cmake/platforms/windows-deployqt.cmake)
# Windows MinGW
if(USE_WINDOWS_MINGW)
# include(cmake/platforms/windows-mingw.cmake)
endif()
# Windows MSVC
if(USE_WINDOWS_MSVC)
# include(cmake/platforms/windows-msvc.cmake)
endif()
# Windows
else()
# include(cmake/platforms/windows-other.cmake)
endif(USE_WINDOWS_UNIVERSAL)
# MacOS 平台的构建(一个无具体实现的空构建)
elseif(APPLE)
# include(cmake/platforms/macos.cmake)
endif()
# ----------------- Notepad-- 线 ----------------- #