Skip to content

Commit a284e3b

Browse files
igor-sirotinIgor Sirotin
andauthored
CMake bugfixes [target alias, license install] (#412)
* Added alias to cmake library target * Fixed CMake license install Co-authored-by: Igor Sirotin <i.sirotin@1440.space>
1 parent 823887d commit a284e3b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ else()
6161
add_library(qtadvanceddocking SHARED ${ads_SRCS} ${ads_HEADERS})
6262
target_compile_definitions(qtadvanceddocking PRIVATE ADS_SHARED_EXPORT)
6363
endif()
64+
65+
add_library(ads::qtadvanceddocking ALIAS qtadvanceddocking)
66+
6467
target_link_libraries(qtadvanceddocking PUBLIC Qt${QT_VERSION_MAJOR}::Core
6568
Qt${QT_VERSION_MAJOR}::Gui
6669
Qt${QT_VERSION_MAJOR}::Widgets)
@@ -87,9 +90,9 @@ install(FILES ${ads_HEADERS}
8790
COMPONENT headers
8891
)
8992
install(FILES
90-
"${CMAKE_SOURCE_DIR}/LICENSE"
91-
"${CMAKE_SOURCE_DIR}/gnu-lgpl-v2.1.md"
92-
DESTINATION license
93+
"${CMAKE_CURRENT_SOURCE_DIR}/../LICENSE"
94+
"${CMAKE_CURRENT_SOURCE_DIR}/../gnu-lgpl-v2.1.md"
95+
DESTINATION license/ads
9396
COMPONENT license
9497
)
9598
install(TARGETS qtadvanceddocking

0 commit comments

Comments
 (0)