代码拉取完成,页面将自动刷新
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}")
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。