Skip to content

Commit

Permalink
respect custom cmake install path for bin/lib/include
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Dec 20, 2024
1 parent 28ac77c commit 6a2f1f9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ aws_use_package(aws-c-http)
target_link_libraries(${PROJECT_NAME} PUBLIC ${DEP_AWS_LIBS})
aws_prepare_shared_lib_exports(${PROJECT_NAME})

install(FILES ${AWS_MQTT_HEADERS} DESTINATION "include/aws/mqtt" COMPONENT Development)
install(FILES ${AWS_MQTT5_HEADERS} DESTINATION "include/aws/mqtt/v5" COMPONENT Development)
install(FILES ${AWS_MQTT_RR_HEADERS} DESTINATION "include/aws/mqtt/request-response" COMPONENT Development)
install(FILES ${AWS_MQTT_TESTING_HEADERS} DESTINATION "include/aws/testing/mqtt" COMPONENT Development)
install(FILES ${AWS_MQTT_PRIV_EXPOSED_HEADERS} DESTINATION "include/aws/mqtt/private" COMPONENT Development)
install(FILES ${AWS_MQTT_HEADERS} DESTINATION "${INCLUDE_DIRECTORY}/aws/mqtt" COMPONENT Development)
install(FILES ${AWS_MQTT5_HEADERS} DESTINATION "${INCLUDE_DIRECTORY}/aws/mqtt/v5" COMPONENT Development)
install(FILES ${AWS_MQTT_RR_HEADERS} DESTINATION "${INCLUDE_DIRECTORY}/aws/mqtt/request-response" COMPONENT Development)
install(FILES ${AWS_MQTT_TESTING_HEADERS} DESTINATION "${INCLUDE_DIRECTORY}/aws/testing/mqtt" COMPONENT Development)
install(FILES ${AWS_MQTT_PRIV_EXPOSED_HEADERS} DESTINATION "${INCLUDE_DIRECTORY}/aws/mqtt/private" COMPONENT Development)

if (BUILD_SHARED_LIBS)
set (TARGET_DIR "shared")
Expand Down
4 changes: 1 addition & 3 deletions bin/elastipubsub/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
project(elastipubsub C)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/lib/cmake")

file(GLOB ELASTIPUBSUB_SRC
"*.c"
)
Expand All @@ -25,5 +23,5 @@ install(TARGETS ${ELASTIPUBSUB_PROJECT_NAME}
EXPORT ${ELASTIPUBSUB_PROJECT_NAME}-targets
COMPONENT Runtime
RUNTIME
DESTINATION bin
DESTINATION ${RUNTIME_DIRECTORY}
COMPONENT Runtime)
4 changes: 1 addition & 3 deletions bin/elastipubsub5/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
project(elastipubsub5 C)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/lib/cmake")

file(GLOB ELASTIPUBSUB_SRC
"*.c"
)
Expand All @@ -25,5 +23,5 @@ install(TARGETS ${ELASTIPUBSUB_MQTT5_PROJECT_NAME}
EXPORT ${ELASTIPUBSUB_MQTT5_PROJECT_NAME}-targets
COMPONENT Runtime
RUNTIME
DESTINATION bin
DESTINATION ${RUNTIME_DIRECTORY}
COMPONENT Runtime)
4 changes: 1 addition & 3 deletions bin/elastishadow/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
project(elastishadow C)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/lib/cmake")

file(GLOB ELASTISHADOW_SRC
"*.c"
)
Expand All @@ -25,5 +23,5 @@ install(TARGETS ${ELASTISHADOW_PROJECT_NAME}
EXPORT ${ELASTISHADOW_PROJECT_NAME}-targets
COMPONENT Runtime
RUNTIME
DESTINATION bin
DESTINATION ${RUNTIME_DIRECTORY}
COMPONENT Runtime)
4 changes: 1 addition & 3 deletions bin/mqtt5canary/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
project(mqtt5canary C)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/lib/cmake")

file(GLOB MQTT5CANARY_SRC
"*.c"
)
Expand All @@ -25,5 +23,5 @@ install(TARGETS ${MQTT5CANARY_PROJECT_NAME}
EXPORT ${MQTT5CANARY_PROJECT_NAME}-targets
COMPONENT Runtime
RUNTIME
DESTINATION bin
DESTINATION ${RUNTIME_DIRECTORY}
COMPONENT Runtime)

0 comments on commit 6a2f1f9

Please sign in to comment.