2016-05-26 23:44:27 +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)
|
|
|
|
|
|
|
|
# Group the headers that go through the MOC compiler
|
|
|
|
SET(Hyperion_QT_HEADERS
|
|
|
|
${CURRENT_HEADER_DIR}/Hyperion.h
|
2016-12-19 23:59:50 +01:00
|
|
|
${CURRENT_HEADER_DIR}/ImageProcessor.h
|
2016-05-26 23:44:27 +02:00
|
|
|
|
|
|
|
${CURRENT_SOURCE_DIR}/LinearColorSmoothing.h
|
2016-08-11 07:13:55 +02:00
|
|
|
${CURRENT_HEADER_DIR}/GrabberWrapper.h
|
2016-09-07 20:10:37 +02:00
|
|
|
${CURRENT_HEADER_DIR}/ComponentRegister.h
|
2016-05-26 23:44:27 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(Hyperion_HEADERS
|
|
|
|
${CURRENT_HEADER_DIR}/ImageProcessorFactory.h
|
|
|
|
${CURRENT_HEADER_DIR}/ImageToLedsMap.h
|
|
|
|
${CURRENT_HEADER_DIR}/LedString.h
|
|
|
|
${CURRENT_HEADER_DIR}/PriorityMuxer.h
|
|
|
|
|
|
|
|
${CURRENT_SOURCE_DIR}/MultiColorAdjustment.h
|
|
|
|
${CURRENT_HEADER_DIR}/MessageForwarder.h
|
|
|
|
)
|
|
|
|
|
|
|
|
SET(Hyperion_SOURCES
|
|
|
|
${CURRENT_SOURCE_DIR}/Hyperion.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/ImageProcessor.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/ImageProcessorFactory.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/LedString.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/PriorityMuxer.cpp
|
|
|
|
|
|
|
|
${CURRENT_SOURCE_DIR}/ImageToLedsMap.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/MultiColorAdjustment.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/LinearColorSmoothing.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/MessageForwarder.cpp
|
2016-08-11 07:13:55 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/GrabberWrapper.cpp
|
2016-09-07 20:10:37 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/ComponentRegister.cpp
|
2016-05-26 23:44:27 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(Hyperion_RESOURCES
|
|
|
|
${CURRENT_SOURCE_DIR}/resource.qrc
|
|
|
|
)
|
|
|
|
|
2016-06-17 01:25:40 +02:00
|
|
|
QT5_WRAP_CPP(Hyperion_HEADERS_MOC ${Hyperion_QT_HEADERS})
|
|
|
|
QT5_ADD_RESOURCES(Hyperion_RESOURCES_RCC ${Hyperion_RESOURCES} OPTIONS "-no-compress")
|
2016-05-26 23:44:27 +02:00
|
|
|
|
|
|
|
add_library(hyperion
|
|
|
|
${Hyperion_HEADERS}
|
|
|
|
${Hyperion_QT_HEADERS}
|
|
|
|
${Hyperion_HEADERS_MOC}
|
|
|
|
${Hyperion_SOURCES}
|
|
|
|
${Hyperion_RESOURCES_RCC}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(hyperion
|
|
|
|
blackborder
|
|
|
|
hyperion-utils
|
|
|
|
leddevice
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|