Skip to content

Commit

Permalink
forgot about the sniffer example
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jan 23, 2022
1 parent 9bf626f commit d8948f0
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions examples/addons/Sniffer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,21 @@ set(example Sniffer)
add_executable(${example} ${example}.cpp)

# link the RF24 lib to the target. Notice we specify pthread as a linked lib here
target_link_libraries(${example} PUBLIC
${RF24}
pthread
${RF24Network}
${RF24Mesh}
${RF24Gateway}
if("${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND")
target_link_libraries(${example} PUBLIC
${RF24}
pthread
${RF24Network}
${RF24Mesh}
${RF24Gateway}
)
else()
target_link_libraries(${example} PUBLIC
${RF24}
pthread
${RF24Network}
${RF24Mesh}
${RF24Gateway}
${LibPIGPIO}
)
endif()

0 comments on commit d8948f0

Please # to comment.