hidapi added as dependency library

Former-commit-id: 067d8ed87d0e416fb8518e05344597a00fc263c2
This commit is contained in:
Johan
2013-11-22 14:42:02 +01:00
parent 333cecdca8
commit d1c1e56bd1
12 changed files with 1915 additions and 15 deletions

View File

@@ -3,7 +3,14 @@
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/hyperion)
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/hyperion)
include_directories(${LIBUSB_1_INCLUDE_DIRS})
#add libusb and pthreads (required for the Lighpack usb device)
find_package(UDev REQUIRED)
find_package(libusb-1.0 REQUIRED)
find_package(Threads REQUIRED)
include_directories(
${UDEV_INCLUDE_DIR}
${LIBUSB_1_INCLUDE_DIRS})
# Group the headers that go through the MOC compiler
SET(Hyperion_QT_HEADERS
@@ -79,5 +86,6 @@ target_link_libraries(hyperion
hyperion-utils
serialport
${QT_LIBRARIES}
${LIBUSB_1_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT})
${LIBUSB_1_LIBRARIES} #apt-get install libusb-1.0-0-dev
${CMAKE_THREAD_LIBS_INIT}
${UDEV_LIBRARIES}) # apt-get install libudev-dev

View File

@@ -3,6 +3,9 @@
set(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/protoserver)
set(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/protoserver)
# add protocol buffers
find_package(Protobuf REQUIRED)
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${PROTOBUF_INCLUDE_DIRS})