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_QT_HEADERS
|
|
|
|
${CURRENT_HEADER_DIR}/Logger.h
|
2017-05-29 15:59:11 +02:00
|
|
|
${CURRENT_HEADER_DIR}/Stats.h
|
2017-06-24 11:52:22 +02:00
|
|
|
${CURRENT_HEADER_DIR}/JsonProcessor.h
|
2016-11-26 22:34:46 +01:00
|
|
|
)
|
2016-06-05 16:08:55 +02:00
|
|
|
|
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-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
|
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()
|
|
|
|
|
|
|
|
qt5_wrap_cpp(Utils_HEADERS_MOC ${Utils_QT_HEADERS})
|
|
|
|
|
|
|
|
|
|
|
|
add_library(hyperion-utils
|
|
|
|
${Utils_QT_HEADERS}
|
|
|
|
${Utils_HEADERS_MOC}
|
|
|
|
${Utils_HEADERS}
|
|
|
|
${Utils_SOURCES}
|
|
|
|
${PROFILER_SOURCE}
|
|
|
|
)
|
|
|
|
|
2017-03-04 22:17:42 +01:00
|
|
|
qt5_use_modules(hyperion-utils Core Gui Network)
|
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
|
|
|
${QT_LIBRARIES})
|