1 Star 0 Fork 1

mashen666/CppQtFluentUi888

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
mowangshuying 提交于 2024-07-14 09:43 . support StateMachine at workflows.
cmake_minimum_required(VERSION 3.20)
project(FluWinGallery VERSION 0.1.5 LANGUAGES CXX)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
find_package(Qt6 REQUIRED COMPONENTS Widgets Svg StateMachine)
qt_standard_project_setup()
add_subdirectory("3rdparty")
add_subdirectory("FluControls")
add_subdirectory("FluExamples")
add_subdirectory("FluIconTool")
add_subdirectory("FluUtils")
add_subdirectory("FluWinGallery")
# add_subdirectory("res")
# add_subdirectory("StyleSheet")
add_custom_target(resource_copy
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
${CMAKE_CURRENT_SOURCE_DIR}/res
${PROJECT_BINARY_DIR}/res
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
${CMAKE_CURRENT_SOURCE_DIR}/StyleSheet
${PROJECT_BINARY_DIR}/StyleSheet
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
${CMAKE_CURRENT_SOURCE_DIR}/code
${PROJECT_BINARY_DIR}/code
)
install(DIRECTORY res
DESTINATION .
)
install(DIRECTORY StyleSheet
DESTINATION .
)
install(DIRECTORY code
DESTINATION .
)
set(CPACK_PACKAGE_FILE_NAME "FluGalleryWin64Msvc")
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
include(InstallRequiredSystemLibraries)
set(CPACK_GENERATOR "ZIP")
include(CPack)
message(STATUS "Configuration Options Summary --
Target system: ${CMAKE_SYSTEM}
Compiler:
Build type: ${CMAKE_BUILD_TYPE}
C compiler: ${CMAKE_C_COMPILER}
Qt version: ${QT_DEFAULT_MAJOR_VERSION}
Qt toolchain: ${QT_QMAKE_EXECUTABLE}")
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mashen666/CppQtFluentUi888.git
git@gitee.com:mashen666/CppQtFluentUi888.git
mashen666
CppQtFluentUi888
CppQtFluentUi888
master

搜索帮助