2023-11-16 21:05:56 +01:00
|
|
|
if(ENABLE_PROFILER)
|
|
|
|
set(PROFILER ${CURRENT_HEADER_DIR}/Profiler.h ${CURRENT_SOURCE_DIR}/Profiler.cpp)
|
2016-11-26 22:34:46 +01:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(hyperion-utils
|
2023-11-16 21:05:56 +01:00
|
|
|
# Global defines/signal sharing
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/global_defines.h
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/GlobalSignals.h
|
|
|
|
# JSON Schema Checker
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/jsonschema/QJsonFactory.h
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/jsonschema/QJsonUtils.h
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/jsonschema/QJsonSchemaChecker.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/jsonschema/QJsonSchemaChecker.cpp
|
|
|
|
# Color ARGB/BGR/RGB/RGBA/RGBW etc. structures
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/ColorArgb.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/ColorArgb.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/ColorBgr.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/ColorBgr.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/ColorRgb.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/ColorRgb.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/ColorRgba.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/ColorRgba.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/ColorRgbScalar.h
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/ColorRgbw.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/ColorRgbw.cpp
|
|
|
|
# Image declaration
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/Image.h
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/ImageData.h
|
|
|
|
# Image resampler
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/ImageResampler.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/ImageResampler.cpp
|
|
|
|
# Color transformation (saturation/luminance) of RGB colors
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/ColorSys.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/ColorSys.cpp
|
|
|
|
# Color transformation (saturation/value) of Okhsv colors
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/OkhsvTransform.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/OkhsvTransform.cpp
|
|
|
|
# Signal handler
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/DefaultSignalHandler.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/DefaultSignalHandler.cpp
|
|
|
|
# File utilities
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/FileUtils.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/FileUtils.cpp
|
|
|
|
# JSON utilities
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/JsonUtils.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/JsonUtils.cpp
|
|
|
|
# Logger
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/Logger.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/Logger.cpp
|
|
|
|
# IP adress/Port checker
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/NetOrigin.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/NetOrigin.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/NetUtils.h
|
|
|
|
# Process namespace (Hyperion restart)
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/Process.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/Process.cpp
|
|
|
|
# Rgb single color adjustment/correction
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/RgbChannelAdjustment.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/RgbChannelAdjustment.cpp
|
|
|
|
# Color conversion/transformation
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/RgbToRgbw.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/RgbToRgbw.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/RgbTransform.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/RgbTransform.cpp
|
|
|
|
# System info class
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/SysInfo.h
|
|
|
|
${CMAKE_SOURCE_DIR}/libsrc/utils/SysInfo.cpp
|
|
|
|
# Grabber pixel formats enumeration
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/PixelFormat.h
|
|
|
|
# Grabber playing modes enumeration
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/VideoMode.h
|
|
|
|
# Grabber video standards enumeration
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/VideoStandard.h
|
|
|
|
# SettingsManager utilities
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/settings.h
|
|
|
|
# Qt string utilities
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/QStringUtils.h
|
|
|
|
# QThread sleep class
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/Sleep.h
|
|
|
|
# Wait event loop function
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/WaitTime.h
|
|
|
|
# Weak connection
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/WeakConnect.h
|
|
|
|
# Semver namespace
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/version.hpp
|
|
|
|
# Utility methods for Hyperion class
|
|
|
|
${CMAKE_SOURCE_DIR}/include/utils/hyperion.h
|
|
|
|
# Oklab color space
|
|
|
|
${CMAKE_SOURCE_DIR}/dependencies/include/oklab/ok_color.h
|
|
|
|
# Performance tester
|
|
|
|
${PROFILER}
|
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
|
2021-11-16 17:12:56 +00:00
|
|
|
Qt${QT_VERSION_MAJOR}::Core
|
|
|
|
Qt${QT_VERSION_MAJOR}::Gui
|
|
|
|
Qt${QT_VERSION_MAJOR}::Network
|
2017-08-01 15:42:36 +02:00
|
|
|
)
|
2022-02-11 20:36:15 +01:00
|
|
|
|
|
|
|
if(ENABLE_EFFECTENGINE)
|
|
|
|
target_link_libraries(hyperion-utils python)
|
|
|
|
endif()
|