blob: 2d0e83cf377092d67786c4045f8abb2f01dee7f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
--- a/scribus/third_party/Qt-Advanced-Docking-System/src/CMakeLists.txt
+++ b/scribus/third_party/Qt-Advanced-Docking-System/src/CMakeLists.txt
@@ -147,7 +147,6 @@ endif()
set(library_name_base "qtadvanceddocking")
set(library_name "${library_name_base}-qt${QT_VERSION_MAJOR}")
-if(BUILD_STATIC)
add_library(
${library_name}
STATIC
@@ -167,26 +166,6 @@ if(BUILD_STATIC)
${library_name}
PROPERTIES OUTPUT_NAME "${library_name}_static"
)
-else()
- add_library(
- ${library_name}
- SHARED
- ${ads_SRCS}
- ${ads_HEADERS}
- )
-
- # ADS_SHARED_EXPORT enables symbol export while building the shared
- # library itself. Consumers do not need this definition.
- target_compile_definitions(
- ${library_name}
- PRIVATE ADS_SHARED_EXPORT
- )
-
- # Add Windows version information to the DLL.
- if(WIN32)
- add_windows_version_resources(${library_name})
- endif()
-endif()
# Provide namespaced aliases for use inside the build tree.
#
@@ -357,50 +336,14 @@ write_basic_package_version_file(
# ---------------------------------------------------------------------------
# Install public ADS headers.
-install(
- FILES
- ${ads_HEADERS}
- "${CMAKE_CURRENT_BINARY_DIR}/ads_version.h"
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${library_name}
- COMPONENT headers
-)
# Install license files.
-install(
- FILES
- "${CMAKE_CURRENT_SOURCE_DIR}/../LICENSE"
- "${CMAKE_CURRENT_SOURCE_DIR}/../gnu-lgpl-v2.1.md"
- DESTINATION share/ads/license
- COMPONENT license
-)
# Install the ADS library and add it to the exported target set.
-install(
- TARGETS ${library_name}
- EXPORT adsTargets
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
-)
# Export the installed target as ads::<target>.
-install(
- EXPORT adsTargets
- FILE adsTargets.cmake
- NAMESPACE ads::
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${library_name}
-)
# Install the package configuration file using the Qt-major-specific
# package name.
-install(
- FILES qtadvanceddockingConfig.cmake
- RENAME ${library_name}Config.cmake
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${library_name}
-)
# Install the generated package version file.
-install(
- FILES "${CMAKE_CURRENT_BINARY_DIR}/${library_name}ConfigVersion.cmake"
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${library_name}
-)
\ No newline at end of file
|