Skip to content

Commit

Permalink
cmake: install link from binary dir
Browse files Browse the repository at this point in the history
  • Loading branch information
bramoosterhuis committed Jun 14, 2024
1 parent 569bb9d commit f14dd48
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ install(
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${NAMESPACE}/interfaces COMPONENT ${NAMESPACE}_Development
)

install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/cdmi.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT ${NAMESPACE}_Development
)

install(
FILES ${JSON_HEADERS}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${NAMESPACE}/interfaces/json COMPONENT ${NAMESPACE}_Development
Expand All @@ -89,6 +94,6 @@ install(
include(CreateLink)

CreateLink(
LINK "${CMAKE_SYSROOT}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/cdmi.h"
TARGET "${CMAKE_SYSROOT}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/${NAMESPACE}/interfaces/IDRM.h"
LINK "${CMAKE_CURRENT_BINARY_DIR}/cdmi.h"
TARGET "${NAMESPACE}/interfaces/IDRM.h"
)

0 comments on commit f14dd48

Please sign in to comment.