2016-05-26 23:44:27 +02:00
|
|
|
# Define the current source locations
|
2016-11-26 22:34:46 +01:00
|
|
|
|
2016-05-26 23:44:27 +02:00
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/utils)
|
|
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/utils)
|
|
|
|
|
2016-11-26 22:34:46 +01:00
|
|
|
SET(Utils_HEADERS
|
2016-05-26 23:44:27 +02:00
|
|
|
${CURRENT_HEADER_DIR}/ColorBgr.h
|
|
|
|
${CURRENT_HEADER_DIR}/ColorRgb.h
|
|
|
|
${CURRENT_HEADER_DIR}/ColorRgba.h
|
2016-05-31 22:55:56 +02:00
|
|
|
${CURRENT_HEADER_DIR}/ColorRgbw.h
|
2016-05-26 23:44:27 +02:00
|
|
|
${CURRENT_HEADER_DIR}/Image.h
|
|
|
|
${CURRENT_HEADER_DIR}/Sleep.h
|
2016-09-03 15:54:33 +02:00
|
|
|
${CURRENT_HEADER_DIR}/FileUtils.h
|
2016-09-15 20:42:58 +02:00
|
|
|
${CURRENT_HEADER_DIR}/Process.h
|
2016-05-26 23:44:27 +02:00
|
|
|
${CURRENT_HEADER_DIR}/PixelFormat.h
|
|
|
|
${CURRENT_HEADER_DIR}/VideoMode.h
|
|
|
|
${CURRENT_HEADER_DIR}/ImageResampler.h
|
2017-01-06 14:25:55 +01:00
|
|
|
${CURRENT_HEADER_DIR}/RgbTransform.h
|
|
|
|
${CURRENT_HEADER_DIR}/ColorSys.h
|
2016-05-26 23:44:27 +02:00
|
|
|
${CURRENT_HEADER_DIR}/RgbChannelAdjustment.h
|
2016-05-31 22:55:56 +02:00
|
|
|
${CURRENT_HEADER_DIR}/RgbToRgbw.h
|
2016-07-20 17:16:06 +02:00
|
|
|
${CURRENT_HEADER_DIR}/jsonschema/QJsonFactory.h
|
|
|
|
${CURRENT_HEADER_DIR}/jsonschema/QJsonSchemaChecker.h
|
2017-07-30 13:32:10 +02:00
|
|
|
${CURRENT_HEADER_DIR}/jsonschema/QJsonUtils.h
|
2017-03-01 15:23:53 +01:00
|
|
|
${CURRENT_HEADER_DIR}/global_defines.h
|
2017-03-02 10:50:31 +01:00
|
|
|
${CURRENT_HEADER_DIR}/SysInfo.h
|
2017-08-01 15:42:36 +02:00
|
|
|
${CURRENT_HEADER_DIR}/Logger.h
|
|
|
|
${CURRENT_HEADER_DIR}/Stats.h
|
|
|
|
${CURRENT_HEADER_DIR}/JsonProcessor.h
|
2016-11-26 22:34:46 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(Utils_SOURCES
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorArgb.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorBgr.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorRgb.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorRgba.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/ColorRgbw.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/FileUtils.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/Process.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/Logger.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/ImageResampler.cpp
|
2017-01-06 14:25:55 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/ColorSys.cpp
|
2016-11-26 22:34:46 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/RgbChannelAdjustment.cpp
|
2017-01-06 14:25:55 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/RgbTransform.cpp
|
2016-11-26 22:34:46 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/RgbToRgbw.cpp
|
2017-03-02 10:50:31 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/SysInfo.cpp
|
2017-05-29 15:59:11 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/Stats.cpp
|
2017-06-24 11:52:22 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/JsonProcessor.cpp
|
2016-07-20 17:16:06 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/jsonschema/QJsonSchemaChecker.cpp
|
2016-05-26 23:44:27 +02:00
|
|
|
)
|
|
|
|
|
2016-11-26 22:34:46 +01:00
|
|
|
if ( ENABLE_PROFILER )
|
|
|
|
SET ( PROFILER_SOURCE ${CURRENT_HEADER_DIR}/Profiler.h ${CURRENT_SOURCE_DIR}/Profiler.cpp )
|
|
|
|
endif()
|
|
|
|
|
2017-08-01 15:42:36 +02:00
|
|
|
set(Utils_RESOURCES
|
|
|
|
${CURRENT_SOURCE_DIR}/JSONRPC_schemas.qrc
|
|
|
|
)
|
|
|
|
|
|
|
|
qt5_add_resources(Utils_RESOURCES_RCC ${Utils_RESOURCES} OPTIONS "-no-compress")
|
2016-11-26 22:34:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
add_library(hyperion-utils
|
|
|
|
${Utils_HEADERS}
|
|
|
|
${Utils_SOURCES}
|
|
|
|
${PROFILER_SOURCE}
|
2017-08-01 15:42:36 +02:00
|
|
|
${Utils_RESOURCES}
|
|
|
|
${Utils_RESOURCES_RCC}
|
2016-11-26 22:34:46 +01:00
|
|
|
)
|
|
|
|
|
2016-05-26 23:44:27 +02:00
|
|
|
target_link_libraries(hyperion-utils
|
2017-08-01 15:42:36 +02:00
|
|
|
hyperion
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::Gui
|
|
|
|
Qt5::Network
|
|
|
|
)
|