Moved rc-switch to sub-project
This commit is contained in:
parent
6c9646291e
commit
bb82ff8317
4 changed files with 15 additions and 7 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -1,3 +1,3 @@
|
|||
[submodule "source/rc-switch"]
|
||||
path = source/rc-switch
|
||||
[submodule "source/RCSwitch/rc-switch"]
|
||||
path = source/RCSwitch/rc-switch
|
||||
url = git@github.com:sui77/rc-switch.git
|
||||
|
|
|
@ -9,11 +9,6 @@ set(CMAKE_AUTOUIC ON)
|
|||
|
||||
add_definitions(-DRPI)
|
||||
|
||||
add_library(rc-switch
|
||||
rc-switch/RCSwitch.cpp
|
||||
rc-switch/RCSwitch.h
|
||||
)
|
||||
|
||||
add_executable(qSniff
|
||||
qsniff.cpp
|
||||
mainwindow.cpp
|
||||
|
@ -35,3 +30,5 @@ add_executable(Sniff
|
|||
|
||||
target_link_libraries(Sniff rc-switch wiringPi)
|
||||
|
||||
add_subdirectory(RCSwitch)
|
||||
|
||||
|
|
11
source/RCSwitch/CMakeLists.txt
Normal file
11
source/RCSwitch/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
cmake_minimum_required(VERSION 3.6)
|
||||
|
||||
add_library(rc-switch
|
||||
rc-switch/RCSwitch.cpp
|
||||
rc-switch/RCSwitch.h
|
||||
)
|
||||
|
||||
target_include_directories(rc-switch
|
||||
PUBLIC .
|
||||
)
|
||||
|
Loading…
Reference in a new issue