2019-08-10 03:36:36 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2020-04-27 21:54:16 +08:00
|
|
|
index 578dfc1..a4c9460 100644
|
2019-08-10 03:36:36 +08:00
|
|
|
--- a/CMakeLists.txt
|
2019-08-14 16:31:41 +08:00
|
|
|
+++ b/CMakeLists.txt
|
2020-04-27 21:54:16 +08:00
|
|
|
@@ -70,7 +70,7 @@ if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
|
2019-08-14 17:09:22 +08:00
|
|
|
else()
|
|
|
|
set(ads_PlatformDir "x64")
|
|
|
|
endif()
|
|
|
|
-if(BUILD_STATIC)
|
|
|
|
+if(NOT BUILD_SHARED_LIBS)
|
|
|
|
add_library(qtadvanceddocking STATIC ${ads_SRCS})
|
2020-04-27 21:54:16 +08:00
|
|
|
target_compile_definitions(qtadvanceddocking PUBLIC ADS_STATIC)
|
2019-08-14 17:09:22 +08:00
|
|
|
else()
|
2020-04-27 21:54:16 +08:00
|
|
|
@@ -88,7 +88,7 @@ install(FILES
|
2019-08-10 03:36:36 +08:00
|
|
|
COMPONENT license
|
|
|
|
)
|
2019-08-14 17:09:22 +08:00
|
|
|
install(TARGETS qtadvanceddocking
|
2020-04-27 21:54:16 +08:00
|
|
|
- EXPORT adsTargets
|
2019-08-10 03:36:36 +08:00
|
|
|
+ EXPORT qt-advanced-docking-systemConfig
|
2020-04-27 21:54:16 +08:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
@@ -100,14 +100,8 @@ write_basic_package_version_file("adsConfigVersion.cmake"
|
|
|
|
VERSION ${ads_VERSION}
|
|
|
|
COMPATIBILITY SameMajorVersion
|
|
|
|
)
|
|
|
|
-install(EXPORT adsTargets
|
|
|
|
- FILE adsTargets.cmake
|
|
|
|
- NAMESPACE ads::
|
|
|
|
- DESTINATION lib/cmake/ads
|
|
|
|
-)
|
|
|
|
-install(FILES "adsConfig.cmake" "${CMAKE_BINARY_DIR}/adsConfigVersion.cmake"
|
|
|
|
- DESTINATION lib/cmake/ads
|
|
|
|
-)
|
|
|
|
+
|
|
|
|
+install(EXPORT qt-advanced-docking-systemConfig NAMESPACE qt-advanced-docking-system:: DESTINATION share/qt-advanced-docking-system)
|
|
|
|
|
|
|
|
target_include_directories(qtadvanceddocking PUBLIC
|
|
|
|
"$<BUILD_INTERFACE:${ads_INCLUDE}>"
|
|
|
|
@@ -117,7 +111,6 @@ target_link_libraries(qtadvanceddocking PUBLIC ${ads_LIBS})
|
2019-08-10 03:36:36 +08:00
|
|
|
target_compile_definitions(qtadvanceddocking PRIVATE ${ads_COMPILE_DEFINE})
|
|
|
|
set_target_properties(qtadvanceddocking PROPERTIES
|
|
|
|
VERSION ${ads_VERSION}
|
2020-04-27 21:54:16 +08:00
|
|
|
- EXPORT_NAME "QtAdvancedDockingSystem"
|
2019-08-10 03:36:36 +08:00
|
|
|
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"
|