Skip to content

Commit

Permalink
buildsystem - Qt6 build - install includes into "-qt6" dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Winter committed Sep 11, 2022
1 parent aa6f6e4 commit 823dbe3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/KDSoapClient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ target_link_libraries(
)
target_include_directories(
kdsoap
INTERFACE "$<INSTALL_INTERFACE:${INSTALL_INCLUDE_DIR}>"
INTERFACE "$<INSTALL_INTERFACE:${INSTALL_INCLUDE_DIR}/KDSoapClient${${PROJECT_NAME}_LIBRARY_QTID}>"
)
set_target_properties(kdsoap PROPERTIES SOVERSION ${${PROJECT_NAME}_SOVERSION} VERSION ${${PROJECT_NAME}_VERSION})

Expand Down Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions src/KDSoapServer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ target_link_libraries(
)
target_include_directories(
kdsoap-server
INTERFACE "$<INSTALL_INTERFACE:${INSTALL_INCLUDE_DIR}>"
INTERFACE "$<INSTALL_INTERFACE:${INSTALL_INCLUDE_DIR}/KDSoapServer${${PROJECT_NAME}_LIBRARY_QTID}>"
)
set_target_properties(
kdsoap-server PROPERTIES SOVERSION ${${PROJECT_NAME}_SOVERSION} VERSION ${${PROJECT_NAME}_VERSION}
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 823dbe3

Please sign in to comment.