Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
MelamudMichael authored Mar 11, 2024
1 parent 8abad5f commit b2d3ad3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pubsub/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ project(pubsub VERSION 0.1.0 LANGUAGES CXX)
find_package(spdlog REQUIRED)
find_package(up-client-zenoh-cpp QUIET)
find_package(up-cpp QUIET)
find_library(ZENOH_LIB zenohc)

add_definitions(-DSPDLOG_FMT_EXTERNAL)

# sub
add_executable(sub src/main_sub.cpp)
target_link_libraries(sub
PUBLIC
up-client-zenoh-cpp::up-client-zenoh-cpp)
up-client-zenoh-cpp::up-client-zenoh-cpp
${ZENOH_LIB})

target_include_directories(sub
PUBLIC
Expand All @@ -46,7 +48,8 @@ target_include_directories(sub
add_executable(pub src/main_pub.cpp)
target_link_libraries(pub
PUBLIC
up-client-zenoh-cpp::up-client-zenoh-cpp)
up-client-zenoh-cpp::up-client-zenoh-cpp
${ZENOH_LIB})

target_include_directories(pub
PUBLIC
Expand Down

0 comments on commit b2d3ad3

Please sign in to comment.