Moved qsniff to separate sub-project
This commit is contained in:
parent
1d2084a017
commit
fa85202c3d
9 changed files with 32 additions and 23 deletions
|
@ -1,30 +1,9 @@
|
|||
cmake_minimum_required(VERSION 3.6)
|
||||
|
||||
find_package(Qt5Widgets)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
add_definitions(-DRPI)
|
||||
|
||||
add_executable(qSniff
|
||||
qsniff.cpp
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
mainwindow.ui
|
||||
sniffthread.cpp
|
||||
sniffthread.h
|
||||
)
|
||||
|
||||
target_link_libraries(qSniff
|
||||
sniffer
|
||||
rc-switch
|
||||
wiringPi
|
||||
Qt5::Widgets
|
||||
)
|
||||
|
||||
add_executable(Sniff
|
||||
sniff.cpp
|
||||
)
|
||||
|
@ -37,4 +16,5 @@ target_link_libraries(Sniff
|
|||
|
||||
add_subdirectory(RCSwitch)
|
||||
add_subdirectory(sniffer)
|
||||
add_subdirectory(qsniff)
|
||||
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
project(rc-switch)
|
||||
cmake_minimum_required(VERSION 3.6)
|
||||
|
||||
add_library(rc-switch
|
||||
add_library(${PROJECT_NAME}
|
||||
rc-switch/RCSwitch.cpp
|
||||
rc-switch/RCSwitch.h
|
||||
)
|
||||
|
||||
target_include_directories(rc-switch
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
wiringPi
|
||||
)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC .
|
||||
)
|
||||
|
||||
|
|
24
source/qsniff/CMakeLists.txt
Normal file
24
source/qsniff/CMakeLists.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
project(qSniff)
|
||||
cmake_minimum_required(VERSION 3.6)
|
||||
|
||||
find_package(Qt5Widgets)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
qsniff.cpp
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
mainwindow.ui
|
||||
sniffthread.cpp
|
||||
sniffthread.h
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
sniffer
|
||||
Qt5::Widgets
|
||||
)
|
||||
|
Loading…
Reference in a new issue