From 2823d0fa107cdddb59e1766ac810199bb69a8828 Mon Sep 17 00:00:00 2001 From: fb Date: Sat, 20 May 2023 21:26:10 +0200 Subject: [PATCH] alias qtadvanceddocking to qt(5|6)advanceddocking for compatability --- src/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8224644..b46707d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -75,11 +75,13 @@ if(BUILD_STATIC) add_library(${library_name} STATIC ${ads_SRCS} ${ads_HEADERS}) target_compile_definitions( ${library_name} PUBLIC ADS_STATIC) else() - add_library( ${library_name} SHARED ${ads_SRCS} ${ads_HEADERS}) - target_compile_definitions( ${library_name} PRIVATE ADS_SHARED_EXPORT) + add_library(${library_name} SHARED ${ads_SRCS} ${ads_HEADERS}) + target_compile_definitions(${library_name} PRIVATE ADS_SHARED_EXPORT) endif() add_library(ads::${library_name} ALIAS ${library_name}) +# alias qtadvanceddocking to qt(5|6)advanceddocking for compatability +add_library(qtadvanceddocking ALIAS ${library_name}) target_link_libraries(${library_name} PUBLIC Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Gui