2013-07-26 22:38:34 +02:00
|
|
|
|
2013-08-13 11:10:45 +02:00
|
|
|
# Find the BCM-package (VC control)
|
|
|
|
find_package(BCM REQUIRED)
|
|
|
|
include_directories(${BCM_INCLUDE_DIRS})
|
|
|
|
|
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-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-08-13 12:03:00 +02:00
|
|
|
${CURRENT_HEADER_DIR}/DispmanxWrapper.h
|
|
|
|
)
|
|
|
|
|
2013-08-13 11:10:45 +02:00
|
|
|
SET(Hyperion_HEADERS
|
2013-08-13 12:03:00 +02:00
|
|
|
${CURRENT_HEADER_DIR}/LedString.h
|
2013-07-26 22:38:34 +02:00
|
|
|
${CURRENT_HEADER_DIR}/LedDevice.h
|
2013-08-13 11:10:45 +02:00
|
|
|
${CURRENT_HEADER_DIR}/ImageProcessor.h
|
|
|
|
${CURRENT_HEADER_DIR}/ImageProcessorFactory.h
|
|
|
|
${CURRENT_HEADER_DIR}/PriorityMuxer.h
|
|
|
|
|
|
|
|
${CURRENT_SOURCE_DIR}/DispmanxFrameGrabber.h
|
2013-07-26 22:38:34 +02:00
|
|
|
|
|
|
|
${CURRENT_SOURCE_DIR}/LedDeviceWs2801.h
|
2013-08-15 21:11:02 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/LedDeviceTest.h
|
2013-08-13 11:10:45 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/ImageToLedsMap.h
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorTransform.h
|
|
|
|
)
|
|
|
|
|
|
|
|
SET(Hyperion_SOURCES
|
2013-07-26 22:38:34 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/LedString.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/Hyperion.cpp
|
2013-08-13 11:10:45 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/ImageProcessor.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/ImageProcessorFactory.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/PriorityMuxer.cpp
|
|
|
|
|
|
|
|
${CURRENT_SOURCE_DIR}/DispmanxWrapper.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/DispmanxFrameGrabber.cpp
|
|
|
|
|
|
|
|
${CURRENT_SOURCE_DIR}/LedDeviceWs2801.cpp
|
2013-08-15 21:11:02 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/LedDeviceTest.cpp
|
2013-08-13 11:10:45 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/ImageToLedsMap.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorTransform.cpp
|
|
|
|
)
|
|
|
|
|
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
|
|
|
|
|
|
|
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-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
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${BCM_LIBRARIES})
|