From 35d34283215e273e9160bdaf27e58a57536e4d1c Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 19 Oct 2017 16:45:24 +0200 Subject: [PATCH] Moved sniff to separate sub-project --- source/CMakeLists.txt | 11 +---------- source/sniff/CMakeLists.txt | 13 +++++++++++++ source/{ => sniff}/sniff.cpp | 0 3 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 source/sniff/CMakeLists.txt rename source/{ => sniff}/sniff.cpp (100%) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 3b2c5fe..bfb2af0 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -4,17 +4,8 @@ set(CMAKE_CXX_STANDARD 11) add_definitions(-DRPI) -add_executable(Sniff - sniff.cpp -) - -target_link_libraries(Sniff - sniffer - rc-switch - wiringPi -) - add_subdirectory(RCSwitch) add_subdirectory(sniffer) add_subdirectory(qsniff) +add_subdirectory(sniff) diff --git a/source/sniff/CMakeLists.txt b/source/sniff/CMakeLists.txt new file mode 100644 index 0000000..8d8184c --- /dev/null +++ b/source/sniff/CMakeLists.txt @@ -0,0 +1,13 @@ +project(Sniff) +cmake_minimum_required(VERSION 3.6) + +add_executable(${PROJECT_NAME} + sniff.cpp +) + +target_link_libraries(${PROJECT_NAME} + sniffer + rc-switch + wiringPi +) + diff --git a/source/sniff.cpp b/source/sniff/sniff.cpp similarity index 100% rename from source/sniff.cpp rename to source/sniff/sniff.cpp