cmake_minimum_required(VERSION 3.7)
find_package(Qt5Widgets)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
add_definitions(-DRPI)
add_library(rc-switch
rc-switch/RCSwitch.cpp
rc-switch/RCSwitch.h
)
add_executable(qSniff
qsniff.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
sniffthread.cpp
sniffthread.h
sniffer.cpp
sniffer.h
target_link_libraries(qSniff rc-switch wiringPi Qt5::Widgets)
add_executable(Sniff
sniff.cpp
target_link_libraries(Sniff rc-switch wiringPi)