Skip to content

Commit

Permalink
Merge pull request #10 from doug1234/CmakeCrud
Browse files Browse the repository at this point in the history
Updated link target and using PROJECT_SOURCE_DIR
  • Loading branch information
iguessthislldo authored Sep 19, 2023
2 parents 63e6610 + 3f8e5ae commit fd0739a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ endif()
target_compile_options(OpenDDW PRIVATE $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>: -Wall -Wextra -Wpedantic -Wno-unused> $<$<CXX_COMPILER_ID:MSVC>: /W4>)

set(OPENDDS_TARGETS
OpenDDS::OpenDDS
OpenDDS::Rtps_Udp
)

target_include_directories(OpenDDW INTERFACE src)
Expand All @@ -66,6 +66,6 @@ target_link_libraries(OpenDDW
OPENDDS_TARGET_SOURCES(OpenDDW idl/std_qos.idl)

INSTALL(FILES
"${CMAKE_SOURCE_DIR}/idl2library.cmake"
DESTINATION "share/cmake/${PROJECT_NAME}"
"${PROJECT_SOURCE_DIR}/idl2library.cmake"
DESTINATION "share/cmake/${PROJECT_NAME}"
)

0 comments on commit fd0739a

Please sign in to comment.