mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Added tinkerforge as local dependency
Former-commit-id: b739eba0676d9c105416d9040ffbe78b2dc4bfbd
This commit is contained in:
@@ -6,21 +6,11 @@ SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/leddevice)
|
||||
#add libusb and pthreads (required for the Lighpack usb device)
|
||||
find_package(libusb-1.0 REQUIRED)
|
||||
find_package(Threads REQUIRED)
|
||||
if(ENABLE_TINKERFORGE)
|
||||
find_package(libtinkerforge-1.0 REQUIRED)
|
||||
endif(ENABLE_TINKERFORGE)
|
||||
|
||||
|
||||
include_directories(
|
||||
../../include/hidapi
|
||||
${LIBUSB_1_INCLUDE_DIRS}) # for Lightpack device
|
||||
|
||||
|
||||
if(ENABLE_TINKERFORGE)
|
||||
include_directories(
|
||||
${LIBTINKERFORGE_1_INCLUDE_DIRS}) # for Tinkerforge device
|
||||
endif(ENABLE_TINKERFORGE)
|
||||
|
||||
# Group the headers that go through the MOC compiler
|
||||
SET(Leddevice_QT_HEADERS
|
||||
${CURRENT_SOURCE_DIR}/LedDeviceAdalight.h
|
||||
@@ -107,9 +97,7 @@ target_link_libraries(leddevice
|
||||
)
|
||||
|
||||
if(ENABLE_TINKERFORGE)
|
||||
target_link_libraries(leddevice
|
||||
${LIBTINKERFORGE_1_LIBRARIES}
|
||||
)
|
||||
target_link_libraries(leddevice tinkerforge)
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
|
Reference in New Issue
Block a user