Moved sniffer to separate sub-project
parent
bb82ff8317
commit
1d2084a017
|
@ -16,19 +16,25 @@ add_executable(qSniff
|
||||||
mainwindow.ui
|
mainwindow.ui
|
||||||
sniffthread.cpp
|
sniffthread.cpp
|
||||||
sniffthread.h
|
sniffthread.h
|
||||||
sniffer.cpp
|
|
||||||
sniffer.h
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(qSniff rc-switch wiringPi Qt5::Widgets)
|
target_link_libraries(qSniff
|
||||||
|
sniffer
|
||||||
|
rc-switch
|
||||||
|
wiringPi
|
||||||
|
Qt5::Widgets
|
||||||
|
)
|
||||||
|
|
||||||
add_executable(Sniff
|
add_executable(Sniff
|
||||||
sniff.cpp
|
sniff.cpp
|
||||||
sniffer.cpp
|
|
||||||
sniffer.h
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(Sniff rc-switch wiringPi)
|
target_link_libraries(Sniff
|
||||||
|
sniffer
|
||||||
|
rc-switch
|
||||||
|
wiringPi
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(RCSwitch)
|
add_subdirectory(RCSwitch)
|
||||||
|
add_subdirectory(sniffer)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
project(sniffer)
|
||||||
|
cmake_minimum_required(VERSION 3.6)
|
||||||
|
|
||||||
|
add_library(${PROJECT_NAME}
|
||||||
|
sniffer.cpp
|
||||||
|
sniffer.h
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(${PROJECT_NAME}
|
||||||
|
rc-switch
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(${PROJECT_NAME}
|
||||||
|
PUBLIC .
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue