2013-07-26 22:38:34 +02:00
|
|
|
|
|
|
|
# Define the current source locations
|
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/hyperion)
|
|
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/hyperion)
|
|
|
|
|
2013-11-22 14:42:02 +01:00
|
|
|
#add libusb and pthreads (required for the Lighpack usb device)
|
|
|
|
find_package(libusb-1.0 REQUIRED)
|
2013-11-25 16:55:59 +01:00
|
|
|
find_package(Threads REQUIRED)
|
2013-11-22 14:42:02 +01:00
|
|
|
|
|
|
|
include_directories(
|
2013-11-25 16:55:59 +01:00
|
|
|
../../include/hidapi
|
2013-11-23 11:14:27 +01:00
|
|
|
${LIBUSB_1_INCLUDE_DIRS}) # for Lightpack device
|
2013-11-13 20:15:53 +01:00
|
|
|
|
2013-08-13 12:03:00 +02:00
|
|
|
# Group the headers that go through the MOC compiler
|
|
|
|
SET(Hyperion_QT_HEADERS
|
2013-08-14 17:02:09 +02:00
|
|
|
${CURRENT_HEADER_DIR}/Hyperion.h
|
2013-10-27 18:04:37 +01:00
|
|
|
|
|
|
|
${CURRENT_SOURCE_DIR}/LinearColorSmoothing.h
|
2013-11-14 19:04:17 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceAdalight.h
|
2013-08-13 12:03:00 +02:00
|
|
|
)
|
|
|
|
|
2013-08-13 11:10:45 +02:00
|
|
|
SET(Hyperion_HEADERS
|
|
|
|
${CURRENT_HEADER_DIR}/ImageProcessor.h
|
|
|
|
${CURRENT_HEADER_DIR}/ImageProcessorFactory.h
|
2013-11-11 10:00:37 +01:00
|
|
|
${CURRENT_HEADER_DIR}/ImageToLedsMap.h
|
2013-08-23 07:08:44 +02:00
|
|
|
${CURRENT_HEADER_DIR}/LedDevice.h
|
|
|
|
${CURRENT_HEADER_DIR}/LedString.h
|
2013-08-13 11:10:45 +02:00
|
|
|
${CURRENT_HEADER_DIR}/PriorityMuxer.h
|
|
|
|
|
2013-11-11 10:00:37 +01:00
|
|
|
${CURRENT_HEADER_DIR}/BlackBorderDetector.h
|
|
|
|
${CURRENT_HEADER_DIR}/BlackBorderProcessor.h
|
2013-11-05 17:18:04 +01:00
|
|
|
|
2013-11-20 09:25:49 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/MultiColorTransform.h
|
|
|
|
|
2013-11-05 17:18:04 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/device/LedSpiDevice.h
|
|
|
|
${CURRENT_SOURCE_DIR}/device/LedRs232Device.h
|
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceTest.h
|
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceSedu.h
|
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceWs2801.h
|
2013-11-05 21:11:31 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceLpd6803.h
|
2013-11-13 21:42:18 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceLpd8806.h
|
2013-11-13 20:15:53 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceLightpack.h
|
2013-11-17 15:51:42 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceMultiLightpack.h
|
2013-08-13 11:10:45 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(Hyperion_SOURCES
|
2013-07-26 22:38:34 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/Hyperion.cpp
|
2013-08-13 11:10:45 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/ImageProcessor.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/ImageProcessorFactory.cpp
|
2013-08-23 07:08:44 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/LedString.cpp
|
2013-08-13 11:10:45 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/PriorityMuxer.cpp
|
|
|
|
|
2013-08-21 16:25:27 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/BlackBorderDetector.cpp
|
2013-08-23 07:08:44 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/BlackBorderProcessor.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/ImageToLedsMap.cpp
|
2013-11-20 09:25:49 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/MultiColorTransform.cpp
|
2013-10-27 18:04:37 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/LinearColorSmoothing.cpp
|
2013-11-05 17:18:04 +01:00
|
|
|
|
|
|
|
${CURRENT_SOURCE_DIR}/device/LedSpiDevice.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/device/LedRs232Device.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceSedu.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceTest.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceWs2801.cpp
|
2013-11-05 21:11:31 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceLpd6803.cpp
|
2013-11-13 21:42:18 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceLpd8806.cpp
|
2013-11-11 21:07:24 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceAdalight.cpp
|
2013-11-13 20:15:53 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceLightpack.cpp
|
2013-11-17 15:51:42 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/device/LedDeviceMultiLightpack.cpp
|
2013-08-13 11:10:45 +02:00
|
|
|
)
|
|
|
|
|
2013-08-21 16:25:27 +02:00
|
|
|
set(Hyperion_RESOURCES
|
|
|
|
${CURRENT_SOURCE_DIR}/resource.qrc
|
|
|
|
)
|
|
|
|
|
2013-08-13 12:03:00 +02:00
|
|
|
QT4_WRAP_CPP(Hyperion_HEADERS_MOC ${Hyperion_QT_HEADERS})
|
2013-08-13 11:10:45 +02:00
|
|
|
|
2013-08-21 16:25:27 +02:00
|
|
|
qt4_add_resources(Hyperion_RESOURCES_RCC ${Hyperion_RESOURCES} OPTIONS "-no-compress")
|
|
|
|
|
2013-08-13 11:10:45 +02:00
|
|
|
add_library(hyperion
|
|
|
|
${Hyperion_HEADERS}
|
2013-08-13 12:03:00 +02:00
|
|
|
${Hyperion_QT_HEADERS}
|
2013-08-13 11:10:45 +02:00
|
|
|
${Hyperion_HEADERS_MOC}
|
|
|
|
${Hyperion_SOURCES}
|
2013-08-21 16:25:27 +02:00
|
|
|
${Hyperion_RESOURCES_RCC}
|
2013-07-26 22:38:34 +02:00
|
|
|
)
|
2013-08-01 17:08:58 +02:00
|
|
|
|
|
|
|
target_link_libraries(hyperion
|
2013-08-13 11:10:45 +02:00
|
|
|
hyperion-utils
|
2013-11-24 16:10:48 +01:00
|
|
|
effectengine
|
2013-11-05 17:21:20 +01:00
|
|
|
serialport
|
2013-11-25 16:55:59 +01:00
|
|
|
${LIBUSB_1_LIBRARIES} #apt-get install libusb-1.0-0-dev
|
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
2013-11-13 20:15:53 +01:00
|
|
|
${QT_LIBRARIES}
|
2013-11-23 11:14:27 +01:00
|
|
|
)
|