Moved sniffer to separate sub-project

subprojects
mandlm 2017-10-19 14:10:00 +02:00
parent bb82ff8317
commit 1d2084a017
4 changed files with 28 additions and 6 deletions

View File

@ -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)

View 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 .
)