Moved qsniff to separate sub-project

subprojects
mandlm 2017-10-19 14:29:03 +02:00
parent 1d2084a017
commit fa85202c3d
9 changed files with 32 additions and 23 deletions

View File

@ -1,30 +1,9 @@
cmake_minimum_required(VERSION 3.6) cmake_minimum_required(VERSION 3.6)
find_package(Qt5Widgets)
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD 11)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
add_definitions(-DRPI) 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 add_executable(Sniff
sniff.cpp sniff.cpp
) )
@ -37,4 +16,5 @@ target_link_libraries(Sniff
add_subdirectory(RCSwitch) add_subdirectory(RCSwitch)
add_subdirectory(sniffer) add_subdirectory(sniffer)
add_subdirectory(qsniff)

View File

@ -1,11 +1,16 @@
project(rc-switch)
cmake_minimum_required(VERSION 3.6) cmake_minimum_required(VERSION 3.6)
add_library(rc-switch add_library(${PROJECT_NAME}
rc-switch/RCSwitch.cpp rc-switch/RCSwitch.cpp
rc-switch/RCSwitch.h rc-switch/RCSwitch.h
) )
target_include_directories(rc-switch target_link_libraries(${PROJECT_NAME}
wiringPi
)
target_include_directories(${PROJECT_NAME}
PUBLIC . PUBLIC .
) )

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