<commit_before>
# Define the current source locations
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/hyperion)
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/hyperion)

# Group the headers that go through the MOC compiler
SET(Hyperion_QT_HEADERS
	${CURRENT_HEADER_DIR}/Hyperion.h

	${CURRENT_SOURCE_DIR}/LinearColorSmoothing.h
)

SET(Hyperion_HEADERS
	${CURRENT_HEADER_DIR}/ImageProcessor.h
	${CURRENT_HEADER_DIR}/ImageProcessorFactory.h
	${CURRENT_HEADER_DIR}/ImageToLedsMap.h
	${CURRENT_HEADER_DIR}/LedString.h
	${CURRENT_HEADER_DIR}/PriorityMuxer.h

	${CURRENT_SOURCE_DIR}/MultiColorTransform.h
	${CURRENT_SOURCE_DIR}/MultiColorCorrection.h
	${CURRENT_SOURCE_DIR}/MultiColorAdjustment.h
	${CURRENT_HEADER_DIR}/MessageForwarder.h
)

SET(Hyperion_SOURCES
	${CURRENT_SOURCE_DIR}/Hyperion.cpp
	${CURRENT_SOURCE_DIR}/ImageProcessor.cpp
	${CURRENT_SOURCE_DIR}/ImageProcessorFactory.cpp
	${CURRENT_SOURCE_DIR}/LedString.cpp
	${CURRENT_SOURCE_DIR}/PriorityMuxer.cpp

	${CURRENT_SOURCE_DIR}/ImageToLedsMap.cpp
	${CURRENT_SOURCE_DIR}/MultiColorTransform.cpp
	${CURRENT_SOURCE_DIR}/MultiColorCorrection.cpp
	${CURRENT_SOURCE_DIR}/MultiColorAdjustment.cpp
	${CURRENT_SOURCE_DIR}/LinearColorSmoothing.cpp
	${CURRENT_SOURCE_DIR}/MessageForwarder.cpp
)

SET(Hyperion_RESOURCES
	${CURRENT_SOURCE_DIR}/resource.qrc
)

QT5_WRAP_CPP(Hyperion_HEADERS_MOC ${Hyperion_QT_HEADERS})
QT5_ADD_RESOURCES(Hyperion_RESOURCES_RCC ${Hyperion_RESOURCES} OPTIONS "-no-compress")

add_library(hyperion
	${Hyperion_HEADERS}
	${Hyperion_QT_HEADERS}
	${Hyperion_HEADERS_MOC}
	${Hyperion_SOURCES}
	${Hyperion_RESOURCES_RCC}
)

target_link_libraries(hyperion
	blackborder
	hyperion-utils
	leddevice
	effectengine
	serialport
	${QT_LIBRARIES}
)<commit_msg>fix linking for serialport (#37)<commit_after>
# Define the current source locations
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/hyperion)
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/hyperion)

# Group the headers that go through the MOC compiler
SET(Hyperion_QT_HEADERS
	${CURRENT_HEADER_DIR}/Hyperion.h

	${CURRENT_SOURCE_DIR}/LinearColorSmoothing.h
)

SET(Hyperion_HEADERS
	${CURRENT_HEADER_DIR}/ImageProcessor.h
	${CURRENT_HEADER_DIR}/ImageProcessorFactory.h
	${CURRENT_HEADER_DIR}/ImageToLedsMap.h
	${CURRENT_HEADER_DIR}/LedString.h
	${CURRENT_HEADER_DIR}/PriorityMuxer.h

	${CURRENT_SOURCE_DIR}/MultiColorTransform.h
	${CURRENT_SOURCE_DIR}/MultiColorCorrection.h
	${CURRENT_SOURCE_DIR}/MultiColorAdjustment.h
	${CURRENT_HEADER_DIR}/MessageForwarder.h
)

SET(Hyperion_SOURCES
	${CURRENT_SOURCE_DIR}/Hyperion.cpp
	${CURRENT_SOURCE_DIR}/ImageProcessor.cpp
	${CURRENT_SOURCE_DIR}/ImageProcessorFactory.cpp
	${CURRENT_SOURCE_DIR}/LedString.cpp
	${CURRENT_SOURCE_DIR}/PriorityMuxer.cpp

	${CURRENT_SOURCE_DIR}/ImageToLedsMap.cpp
	${CURRENT_SOURCE_DIR}/MultiColorTransform.cpp
	${CURRENT_SOURCE_DIR}/MultiColorCorrection.cpp
	${CURRENT_SOURCE_DIR}/MultiColorAdjustment.cpp
	${CURRENT_SOURCE_DIR}/LinearColorSmoothing.cpp
	${CURRENT_SOURCE_DIR}/MessageForwarder.cpp
)

SET(Hyperion_RESOURCES
	${CURRENT_SOURCE_DIR}/resource.qrc
)

QT5_WRAP_CPP(Hyperion_HEADERS_MOC ${Hyperion_QT_HEADERS})
QT5_ADD_RESOURCES(Hyperion_RESOURCES_RCC ${Hyperion_RESOURCES} OPTIONS "-no-compress")

add_library(hyperion
	${Hyperion_HEADERS}
	${Hyperion_QT_HEADERS}
	${Hyperion_HEADERS_MOC}
	${Hyperion_SOURCES}
	${Hyperion_RESOURCES_RCC}
)

target_link_libraries(hyperion
	blackborder
	hyperion-utils
	leddevice
	effectengine
	${QT_LIBRARIES}
)
{'fraction_non_alphanumeric': 0.10436542353281295, 'fraction_numerical': 0.0017346053772766695, 'mean_word_length': 9.146627565982405, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7634792', 'n_tokens_mistral': 1325, 'n_tokens_neox': 1221, 'n_words': 133}