From 823dbe3b7990f9b6efa99ad71878fff913167595 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Sun, 11 Sep 2022 13:06:05 -0400 Subject: [PATCH] buildsystem - Qt6 build - install includes into "-qt6" dirs --- CMakeLists.txt | 6 ++++-- src/KDSoapClient/CMakeLists.txt | 4 ++-- src/KDSoapServer/CMakeLists.txt | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ca74911..8f7f5d49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,7 +122,7 @@ find_path(BOOST_OPTIONAL_DIR NAMES boost/optional.hpp) if(BOOST_OPTIONAL_DIR) message(STATUS "Found boost/optional.hpp in ${BOOST_OPTIONAL_DIR}") include_directories(${BOOST_OPTIONAL_DIR}) - add_definitions(-DBOOST_OPTIONAL_FOUND)# I'd really prefer using configure_file but this is more compatible with qmake + add_definitions(-DBOOST_OPTIONAL_FOUND) endif() set(CMAKE_INCLUDE_CURRENT_DIR TRUE) @@ -207,7 +207,9 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) COMPATIBILITY AnyNewerVersion ) - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/kdsoap_version.h" DESTINATION ${INSTALL_INCLUDE_DIR}/KDSoapClient) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/kdsoap_version.h" + DESTINATION ${INSTALL_INCLUDE_DIR}/KDSoapClient${${PROJECT_NAME}_LIBRARY_QTID} + ) configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/KDSoapConfig-buildtree.cmake.in" diff --git a/src/KDSoapClient/CMakeLists.txt b/src/KDSoapClient/CMakeLists.txt index 86807fa1..563cb6df 100644 --- a/src/KDSoapClient/CMakeLists.txt +++ b/src/KDSoapClient/CMakeLists.txt @@ -44,7 +44,7 @@ target_link_libraries( ) target_include_directories( kdsoap - INTERFACE "$" + INTERFACE "$" ) set_target_properties(kdsoap PROPERTIES SOVERSION ${${PROJECT_NAME}_SOVERSION} VERSION ${${PROJECT_NAME}_VERSION}) @@ -107,7 +107,7 @@ if(KDSoap_IS_ROOT_PROJECT) KDSoapEndpointReference.h KDQName.h KDSoapUdpClient.h - DESTINATION ${INSTALL_INCLUDE_DIR}/KDSoapClient + DESTINATION ${INSTALL_INCLUDE_DIR}/KDSoapClient${${PROJECT_NAME}_LIBRARY_QTID} ) install( diff --git a/src/KDSoapServer/CMakeLists.txt b/src/KDSoapServer/CMakeLists.txt index 2f067c69..2c9ff893 100644 --- a/src/KDSoapServer/CMakeLists.txt +++ b/src/KDSoapServer/CMakeLists.txt @@ -39,7 +39,7 @@ target_link_libraries( ) target_include_directories( kdsoap-server - INTERFACE "$" + INTERFACE "$" ) set_target_properties( kdsoap-server PROPERTIES SOVERSION ${${PROJECT_NAME}_SOVERSION} VERSION ${${PROJECT_NAME}_VERSION} @@ -88,7 +88,7 @@ if(KDSoap_IS_ROOT_PROJECT) KDSoapServerObjectInterface.h KDSoapServerGlobal.h KDSoapThreadPool.h - DESTINATION ${INSTALL_INCLUDE_DIR}/KDSoapServer + DESTINATION ${INSTALL_INCLUDE_DIR}/KDSoapServer${${PROJECT_NAME}_LIBRARY_QTID} ) install(