-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (21 loc) · 885 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 2.6)
project(bluld CXX)
find_package(PkgConfig REQUIRED)
pkg_search_module(HIDAPI REQUIRED hidapi-libusb)
add_definitions(-Wall -Werror -Wextra)
include_directories(
${HIDAPI_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/blinkstick-userspace-led-daemon/include
)
add_executable(bluld
blinkstick-userspace-led-daemon/src/BlinkStick.cpp
blinkstick-userspace-led-daemon/src/LEDBinding.cpp
blinkstick-userspace-led-daemon/src/LEDBindingRegistrationException.cpp
blinkstick-userspace-led-daemon/src/BluldInitializationException.cpp
blinkstick-userspace-led-daemon/src/BlinkStickCommunicationException.cpp
blinkstick-userspace-led-daemon/src/RGBColor.cpp
blinkstick-userspace-led-daemon/src/BluldRunner.cpp
blinkstick-userspace-led-daemon/src/main.cpp
)
target_link_libraries(bluld ${HIDAPI_LIBRARIES})
install(TARGETS bluld DESTINATION sbin/)