qSniff/source/RCSwitch/CMakeLists.txt

22 lines
307 B
CMake

project(rc-switch)
cmake_minimum_required(VERSION 3.6)
add_library(${PROJECT_NAME}
rc-switch/RCSwitch.cpp
rc-switch/RCSwitch.h
)
target_link_libraries(${PROJECT_NAME}
wiringPi
)
target_include_directories(${PROJECT_NAME}
PUBLIC rc-switch
)
target_compile_definitions(${PROJECT_NAME}
PUBLIC RPI
)