Skip to content

Commit

Permalink
fixed cmakelists to link properly (#12).
Browse files Browse the repository at this point in the history
  • Loading branch information
pvazteixeira committed Oct 20, 2018
1 parent 1a47d4d commit 50aff58
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/examples/caesar/hexagonal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ find_path(ZeroMQ_INCLUDE_DIR
PATHS ${PC_ZeroMQ_INCLUDE_DIRS}
)

find_library(ZeroMQ_LIBRARY
NAMES zmq
PATHS ${PC_ZeroMQ_LIBRARY_DIRS}
)

add_executable(caesar_hexagonal main.cpp)
## add the include directory to our compile directives
target_include_directories(caesar_hexagonal PUBLIC ${ZeroMQ_INCLUDE_DIR})
Expand Down
9 changes: 9 additions & 0 deletions src/examples/caesar/pose3/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@

find_package(PkgConfig)
## use pkg-config to get hints for 0mq locations

pkg_check_modules(PC_ZeroMQ QUIET zmq)

find_path(ZeroMQ_INCLUDE_DIR
NAMES zmq.hpp
PATHS ${PC_ZeroMQ_INCLUDE_DIRS}
)

find_library(ZeroMQ_LIBRARY
NAMES zmq
PATHS ${PC_ZeroMQ_LIBRARY_DIRS}
)


add_executable(caesar_pose3 main.cpp)
## add the include directory to our compile directives
target_include_directories(caesar_pose3 PUBLIC ${ZeroMQ_INCLUDE_DIR})
Expand Down

0 comments on commit 50aff58

Please sign in to comment.