Skip to content

Commit

Permalink
skip build irq examples for mraa/wiringPi
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jan 24, 2022
1 parent ae80da8 commit 9561200
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
13 changes: 11 additions & 2 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,20 @@ target_link_libraries(${example} PUBLIC
${linked_libs}
)

add_subdirectory(gwNodeInt)
if("${RF24_DRIVER}" STREQUAL "MRAA" OR "${RF24_DRIVER}" STREQUAL "wiringPi")
message(STATUS "skipping gwNodeInt example because it is incompatible with selected driver")
else()
add_subdirectory(gwNodeInt)
endif()

add_subdirectory(addons/Sniffer)

include(../cmake/enableNcursesExample.cmake)
if(BUILD_NCURSES_EXAMPLE)
add_subdirectory(ncurses)
add_subdirectory(ncursesInt)
if("${RF24_DRIVER}" STREQUAL "MRAA" OR "${RF24_DRIVER}" STREQUAL "wiringPi")
message(STATUS "skipping ncursesInt example because it is incompatible with selected driver")
else()
add_subdirectory(ncursesInt)
endif()
endif()
1 change: 1 addition & 0 deletions examples/ncurses/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ add_executable(${example} ${example}.cpp)
# link the RF24 lib to the target.
target_link_libraries(${example} PUBLIC
${linked_libs}
${CURSES_LIBRARIES}
)
1 change: 1 addition & 0 deletions examples/ncursesInt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ add_executable(${example} ${example}.cpp)
# link the RF24 lib to the target.
target_link_libraries(${example} PUBLIC
${linked_libs}
${CURSES_LIBRARIES}
)

0 comments on commit 9561200

Please # to comment.