cmake_minimum_required(VERSION 3.5)
project(QtAdvancedDockingSystem LANGUAGES CXX VERSION ${VERSION_SHORT})
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} 5.5 COMPONENTS Core Gui Widgets REQUIRED)
if (UNIX AND NOT APPLE)
include_directories(${Qt${QT_VERSION_MAJOR}Gui_PRIVATE_INCLUDE_DIRS})
endif()
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if(BUILD_STATIC)
set(CMAKE_STATIC_LIBRARY_SUFFIX "_static${CMAKE_STATIC_LIBRARY_SUFFIX}")
endif()
set(ads_SRCS
ads_globals.cpp
DockAreaTabBar.cpp
DockAreaTitleBar.cpp
DockAreaWidget.cpp
DockContainerWidget.cpp
DockManager.cpp
DockOverlay.cpp
DockSplitter.cpp
DockWidget.cpp
DockWidgetTab.cpp
DockingStateReader.cpp
DockFocusController.cpp
ElidingLabel.cpp
FloatingDockContainer.cpp
FloatingDragPreview.cpp
IconProvider.cpp
DockComponentsFactory.cpp
ads.qrc
)
set(ads_HEADERS
ads_globals.h
DockAreaTabBar.h
DockAreaTitleBar.h
DockAreaTitleBar_p.h
DockAreaWidget.h
DockContainerWidget.h
DockManager.h
DockOverlay.h
DockSplitter.h
DockWidget.h
DockWidgetTab.h
DockingStateReader.h
DockFocusController.h
ElidingLabel.h
FloatingDockContainer.h
FloatingDragPreview.h
IconProvider.h
DockComponentsFactory.h
)
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
if (UNIX AND NOT APPLE)
set(ads_SRCS linux/FloatingWidgetTitleBar.cpp ${ads_SRCS})
set(ads_HEADERS linux/FloatingWidgetTitleBar.h ${ads_HEADERS})
endif()
if(BUILD_STATIC)
add_library(qtadvanceddocking STATIC ${ads_SRCS} ${ads_HEADERS})
target_compile_definitions(qtadvanceddocking PUBLIC ADS_STATIC)
else()
add_library(qtadvanceddocking SHARED ${ads_SRCS} ${ads_HEADERS})
target_compile_definitions(qtadvanceddocking PRIVATE ADS_SHARED_EXPORT)
endif()
target_link_libraries(qtadvanceddocking PUBLIC Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Gui
Qt${QT_VERSION_MAJOR}::Widgets)
set_target_properties(qtadvanceddocking PROPERTIES
AUTOMOC ON
AUTORCC ON
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
VERSION ${VERSION_SHORT}
EXPORT_NAME "qtadvanceddocking"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
)
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
"qtadvanceddockingConfigVersion.cmake"
VERSION ${VERSION_SHORT}
COMPATIBILITY SameMajorVersion
)
install(FILES ${ads_HEADERS}
DESTINATION include
COMPONENT headers
)
install(FILES
"${CMAKE_SOURCE_DIR}/LICENSE"
"${CMAKE_SOURCE_DIR}/gnu-lgpl-v2.1.md"
DESTINATION license
COMPONENT license
)
install(TARGETS qtadvanceddocking
EXPORT adsTargets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
INCLUDES DESTINATION include
)
install(EXPORT adsTargets
FILE adsTargets.cmake
NAMESPACE ads::
DESTINATION lib/cmake/qtadvanceddocking
)
install(FILES qtadvanceddockingConfig.cmake "${CMAKE_CURRENT_BINARY_DIR}/qtadvanceddockingConfigVersion.cmake"
DESTINATION lib/cmake/qtadvanceddocking
)
target_include_directories(qtadvanceddocking PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
HVM.7z (75个子文件)
HVM
SidebarSplitter.h 191B
View3D
ViewWidget3D.cpp 2KB
ViewWidget3D.h 599B
main.cpp 337B
CMakeLists.txt 3KB
include
QtAdvancedDockingSystem
qtadvanceddockingConfig.cmake 87B
DockFocusController.h 2KB
IconProvider.cpp 2KB
images
restore-button.svg 4KB
close-button.svg 5KB
close-button-focused.svg 5KB
maximize-button-focused.svg 4KB
detach-button.svg 6KB
close-button-disabled.svg 5KB
maximize-button.svg 4KB
tabs-menu-button.svg 4KB
restore-button-focused.svg 4KB
detach-button-disabled.svg 6KB
src.pro 2KB
DockManager.h 25KB
DockWidget.cpp 25KB
DockContainerWidget.cpp 55KB
DockSplitter.h 3KB
DockAreaTitleBar.cpp 19KB
DockWidgetTab.cpp 21KB
DockingStateReader.cpp 996B
FloatingDockContainer.h 9KB
ElidingLabel.cpp 6KB
DockingStateReader.h 1KB
DockAreaTitleBar.h 5KB
DockSplitter.cpp 3KB
DockWidget.h 22KB
DockOverlay.h 8KB
DockManager.cpp 33KB
ads.qrc 782B
DockOverlay.cpp 24KB
DockWidgetTab.h 5KB
DockAreaTitleBar_p.h 3KB
stylesheets
default.css 2KB
focus_highlighting.css 3KB
default_linux.css 2KB
focus_highlighting_linux.css 5KB
ads_globals.h 8KB
IconProvider.h 1KB
DockFocusController.cpp 11KB
DockAreaWidget.cpp 27KB
ads_globals.cpp 12KB
linux
FloatingWidgetTitleBar.h 3KB
FloatingWidgetTitleBar.cpp 9KB
DockContainerWidget.h 9KB
CMakeLists.txt 3KB
DockAreaTabBar.cpp 12KB
DockComponentsFactory.cpp 2KB
ElidingLabel.h 3KB
DockComponentsFactory.h 2KB
FloatingDragPreview.cpp 12KB
DockAreaTabBar.h 6KB
DockAreaWidget.h 11KB
FloatingDockContainer.cpp 38KB
FloatingDragPreview.h 3KB
SidebarSplitter.cpp 156B
main.cpp 184B
.gitignore 6KB
mainwindow.cpp 3KB
CMakeLists.txt 2KB
mainwindow.h 797B
lib
qtadvanceddocking.dll 347KB
qtadvanceddocking.lib 199KB
qtadvanceddockingd.ilk 6.65MB
qtadvanceddockingd.pdb 7.34MB
qtadvanceddockingd.lib 199KB
qtadvanceddockingd.exp 119KB
qtadvanceddockingd.dll 971KB
qtadvanceddocking.exp 119KB
.gitattributes 3KB
共 75 条
- 1
windSnowLi
- 粉丝: 93
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0