mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 12:19:08 +08:00
657becf609
* updated qt-advanced-docking-system to 3.2.1 * fixed source hash * made requested changes * fix linux build * Update to 3.2.5, fix hash discrepancy
48 lines
1.8 KiB
Diff
48 lines
1.8 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 578dfc1..a4c9460 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -70,7 +70,7 @@ if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
|
|
else()
|
|
set(ads_PlatformDir "x64")
|
|
endif()
|
|
-if(BUILD_STATIC)
|
|
+if(NOT BUILD_SHARED_LIBS)
|
|
add_library(qtadvanceddocking STATIC ${ads_SRCS})
|
|
target_compile_definitions(qtadvanceddocking PUBLIC ADS_STATIC)
|
|
else()
|
|
@@ -88,7 +88,7 @@ install(FILES
|
|
COMPONENT license
|
|
)
|
|
install(TARGETS qtadvanceddocking
|
|
- EXPORT adsTargets
|
|
+ EXPORT qt-advanced-docking-systemConfig
|
|
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})
|
|
target_compile_definitions(qtadvanceddocking PRIVATE ${ads_COMPILE_DEFINE})
|
|
set_target_properties(qtadvanceddocking PROPERTIES
|
|
VERSION ${ads_VERSION}
|
|
- EXPORT_NAME "QtAdvancedDockingSystem"
|
|
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"
|