2016-05-26 23:44:27 +02:00
|
|
|
# Define the current source locations
|
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/utils)
|
|
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/utils)
|
|
|
|
|
2016-06-05 16:08:55 +02:00
|
|
|
if ( ENABLE_PROFILER )
|
|
|
|
SET ( PROFILER_SOURCE ${CURRENT_HEADER_DIR}/Profiler.h ${CURRENT_SOURCE_DIR}/Profiler.cpp )
|
|
|
|
endif()
|
|
|
|
|
2016-05-26 23:44:27 +02:00
|
|
|
add_library(hyperion-utils
|
|
|
|
${CURRENT_HEADER_DIR}/ColorArgb.h
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorArgb.cpp
|
|
|
|
${CURRENT_HEADER_DIR}/ColorBgr.h
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorBgr.cpp
|
|
|
|
${CURRENT_HEADER_DIR}/ColorRgb.h
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorRgb.cpp
|
|
|
|
${CURRENT_HEADER_DIR}/ColorRgba.h
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorRgba.cpp
|
2016-05-31 22:55:56 +02:00
|
|
|
${CURRENT_HEADER_DIR}/ColorRgbw.h
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorRgbw.cpp
|
2016-05-26 23:44:27 +02:00
|
|
|
${CURRENT_HEADER_DIR}/Image.h
|
|
|
|
${CURRENT_HEADER_DIR}/Sleep.h
|
|
|
|
|
2016-06-05 16:08:55 +02:00
|
|
|
${CURRENT_HEADER_DIR}/Logger.h
|
|
|
|
${CURRENT_SOURCE_DIR}/Logger.cpp
|
|
|
|
${PROFILER_SOURCE}
|
|
|
|
|
2016-05-26 23:44:27 +02:00
|
|
|
${CURRENT_HEADER_DIR}/PixelFormat.h
|
|
|
|
${CURRENT_HEADER_DIR}/VideoMode.h
|
|
|
|
|
|
|
|
${CURRENT_HEADER_DIR}/ImageResampler.h
|
|
|
|
${CURRENT_SOURCE_DIR}/ImageResampler.cpp
|
|
|
|
|
|
|
|
${CURRENT_HEADER_DIR}/HsvTransform.h
|
|
|
|
${CURRENT_SOURCE_DIR}/HsvTransform.cpp
|
|
|
|
${CURRENT_HEADER_DIR}/HslTransform.h
|
|
|
|
${CURRENT_SOURCE_DIR}/HslTransform.cpp
|
|
|
|
${CURRENT_HEADER_DIR}/RgbChannelTransform.h
|
|
|
|
${CURRENT_SOURCE_DIR}/RgbChannelTransform.cpp
|
|
|
|
${CURRENT_HEADER_DIR}/RgbChannelAdjustment.h
|
|
|
|
${CURRENT_SOURCE_DIR}/RgbChannelAdjustment.cpp
|
|
|
|
|
2016-05-31 22:55:56 +02:00
|
|
|
${CURRENT_HEADER_DIR}/RgbToRgbw.h
|
|
|
|
${CURRENT_SOURCE_DIR}/RgbToRgbw.cpp
|
|
|
|
|
2016-05-26 23:44:27 +02:00
|
|
|
${CURRENT_HEADER_DIR}/jsonschema/JsonFactory.h
|
|
|
|
${CURRENT_HEADER_DIR}/jsonschema/JsonSchemaChecker.h
|
|
|
|
${CURRENT_SOURCE_DIR}/jsonschema/JsonSchemaChecker.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-21 23:34:57 +02:00
|
|
|
qt5_use_modules(hyperion-utils Core)
|
2016-06-07 22:24:29 +02:00
|
|
|
|
2016-05-26 23:44:27 +02:00
|
|
|
target_link_libraries(hyperion-utils
|
2016-06-07 22:24:29 +02:00
|
|
|
jsoncpp
|
|
|
|
${QT_LIBRARIES})
|