2017-10-19 11:36:02 +00:00
|
|
|
cmake_minimum_required(VERSION 3.6)
|
2017-10-17 11:19:25 +00:00
|
|
|
|
2017-10-17 20:08:05 +00:00
|
|
|
find_package(Qt5Widgets)
|
|
|
|
|
2017-10-19 11:36:02 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
2017-10-17 20:08:05 +00:00
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
|
2017-10-17 14:50:20 +00:00
|
|
|
add_definitions(-DRPI)
|
2017-10-17 11:19:25 +00:00
|
|
|
|
2017-10-17 14:50:20 +00:00
|
|
|
add_executable(qSniff
|
2017-10-17 20:08:05 +00:00
|
|
|
qsniff.cpp
|
|
|
|
mainwindow.cpp
|
|
|
|
mainwindow.h
|
|
|
|
mainwindow.ui
|
|
|
|
sniffthread.cpp
|
|
|
|
sniffthread.h
|
2017-10-17 14:50:20 +00:00
|
|
|
)
|
|
|
|
|
2017-10-19 12:10:00 +00:00
|
|
|
target_link_libraries(qSniff
|
|
|
|
sniffer
|
|
|
|
rc-switch
|
|
|
|
wiringPi
|
|
|
|
Qt5::Widgets
|
|
|
|
)
|
2017-10-17 14:50:20 +00:00
|
|
|
|
2017-10-18 20:31:39 +00:00
|
|
|
add_executable(Sniff
|
|
|
|
sniff.cpp
|
|
|
|
)
|
|
|
|
|
2017-10-19 12:10:00 +00:00
|
|
|
target_link_libraries(Sniff
|
|
|
|
sniffer
|
|
|
|
rc-switch
|
|
|
|
wiringPi
|
|
|
|
)
|
2017-10-18 20:31:39 +00:00
|
|
|
|
2017-10-19 11:57:55 +00:00
|
|
|
add_subdirectory(RCSwitch)
|
2017-10-19 12:10:00 +00:00
|
|
|
add_subdirectory(sniffer)
|
2017-10-19 11:57:55 +00:00
|
|
|
|