<commit_before>add_executable(elektra-export-errors exporterrors.cpp parser.hpp parser.cpp)

if (INSTALL_BUILD_TOOLS)
	install (TARGETS elektra-export-errors DESTINATION bin)
endif (INSTALL_BUILD_TOOLS)

set_source_files_properties(elektra-export-errors OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/specification)

find_util (elektra-export-errors EXE_ERR_LOC EXE_ERR_ARG)
set (BINARY_INCLUDE_DIR "${PROJECT_BINARY_DIR}/src/include")
add_custom_command (
		OUTPUT ${BINARY_INCLUDE_DIR}/kdberrors.h
		DEPENDS elektra-export-errors
		COMMAND ${EXE_ERR_LOC}
		ARGS ${EXE_ERR_ARG} ${CMAKE_SOURCE_DIR}/src/error/specification ${BINARY_INCLUDE_DIR}/kdberrors.h
		)
add_custom_target (
    kdberrors_generated ALL
    DEPENDS ${BINARY_INCLUDE_DIR}/kdberrors.h
    )

add_executable(exporttranslations exporttranslations.cpp parser.hpp parser.cpp)

set_source_files_properties(exporttranslations OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/specification)<commit_msg>Build: Add spec as dependency of `kdberrors.h`<commit_after>add_executable(elektra-export-errors exporterrors.cpp parser.hpp parser.cpp)

if (INSTALL_BUILD_TOOLS)
	install (TARGETS elektra-export-errors DESTINATION bin)
endif (INSTALL_BUILD_TOOLS)

set_source_files_properties(elektra-export-errors OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/specification)

find_util (elektra-export-errors EXE_ERR_LOC EXE_ERR_ARG)
set (BINARY_INCLUDE_DIR "${PROJECT_BINARY_DIR}/src/include")
add_custom_command (
		OUTPUT ${BINARY_INCLUDE_DIR}/kdberrors.h
		DEPENDS elektra-export-errors ${CMAKE_CURRENT_SOURCE_DIR}/specification
		COMMAND ${EXE_ERR_LOC}
		ARGS ${EXE_ERR_ARG} ${CMAKE_SOURCE_DIR}/src/error/specification ${BINARY_INCLUDE_DIR}/kdberrors.h
		)
add_custom_target (
    kdberrors_generated ALL
    DEPENDS ${BINARY_INCLUDE_DIR}/kdberrors.h
    )

add_executable(exporttranslations exporttranslations.cpp parser.hpp parser.cpp)

set_source_files_properties(exporttranslations OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/specification)
{'fraction_non_alphanumeric': 0.08765743073047859, 'fraction_numerical': 0.0, 'mean_word_length': 7.945945945945946, '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': '6167436', 'n_tokens_mistral': 742, 'n_tokens_neox': 701, 'n_words': 98}