 +  message(STATUS "rc-switch headers found ${RCSWITCH_INCLUDE_DIRS}")
 +endif()
 +
++# External dependencies
++find_package (Threads)
++
 +add_definitions(-std=c++11 -Wfatal-errors)
 +add_definitions(-DRPI)
 +

+target_link_libraries(${SNIFFER_EXE_NAME}
+  ${WIRINGPI_LIBRARY}
+  ${RCSWITCH_LIBRARY}
+)
+
+##############################################

+target_link_libraries(${SEND_EXE_NAME}
+  ${WIRINGPI_LIBRARY}
+  ${RCSWITCH_LIBRARY}
+  ${CMAKE_THREAD_LIBS_INIT}
+)
+
+##############################################
