Moved sniffer to separate sub-project
This commit is contained in:
parent
bb82ff8317
commit
1d2084a017
4 changed files with 28 additions and 6 deletions
|
@ -16,19 +16,25 @@ add_executable(qSniff
|
|||
mainwindow.ui
|
||||
sniffthread.cpp
|
||||
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
|
||||
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(sniffer)
|
||||
|
||||
|
|
16
source/sniffer/CMakeLists.txt
Normal file
16
source/sniffer/CMakeLists.txt
Normal file
|
@ -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 a new issue