Skip to content

Commit

Permalink
Updated link target and using PROJECT_SOURCE_DIR instead of CMAKE_SOU…
Browse files Browse the repository at this point in the history
…RCE_DIR.
  • Loading branch information
Douglas Ayers committed Sep 18, 2023
1 parent b4fb147 commit 9026207
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 9026207

Please sign in to comment.