Skip to content

Commit

Permalink
Fix Include Directory in CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
iguessthislldo committed Oct 17, 2023
1 parent fb783cc commit 0c2b0cc
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ set(OPENDDS_TARGETS
)

target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
$<INSTALL_INTERFACE:include>
)

set_property(TARGET ${PROJECT_NAME}
APPEND PROPERTY PUBLIC_HEADER
${MANAGER_HEADER}
APPEND PROPERTY PUBLIC_HEADER
${MANAGER_HEADER}
)

target_link_libraries(OpenDDW
Expand All @@ -92,23 +92,23 @@ OPENDDS_TARGET_SOURCES(OpenDDW idl/std_qos.idl)
INCLUDE(CMakePackageConfigHelpers)

install(TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}

RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include
)

INSTALL(EXPORT ${PROJECT_NAME}
NAMESPACE ${PROJECT_TARGET_PREFIX}::
FILE ${PROJECT_TARGET_FILE}
DESTINATION ${CONFIG_FILE_INSTALL_LOCATION}
NAMESPACE ${PROJECT_TARGET_PREFIX}::
FILE ${PROJECT_TARGET_FILE}
DESTINATION ${CONFIG_FILE_INSTALL_LOCATION}
)

INSTALL(FILES
idl/std_qos.idl
DESTINATION idl
idl/std_qos.idl
DESTINATION idl
)

CONFIGURE_PACKAGE_CONFIG_FILE(${PROJECT_PACKAGE_CONFIG_IN_FILE}
Expand Down

0 comments on commit 0c2b0cc

Please sign in to comment.