<commit_before>set(BOOST_LIBS date_time filesystem system thread program_options)
if(WIN32)
	list(APPEND BOOST_LIBS regex chrono)
endif()

find_package(Boost COMPONENTS ${BOOST_LIBS} REQUIRED)
find_package(Threads)

configure_file("config.h.in" "config.h")

include_directories(
    ${PROJECT_BINARY_DIR}
    ${Boost_INCLUDE_DIRS}
)

add_library(slbu-lib 
    Facility.cpp
    Severity.cpp
    SyslogBulkUploader.cpp
    SyslogMessage.cpp
    UDPWriter.cpp
)
target_link_libraries(slbu-lib 
    ${Boost_DATE_TIME_LIBRARY}
    ${Boost_THREAD_LIBRARY}
)

add_executable(syslog-bulk-uploader main.cpp)
target_link_libraries(syslog-bulk-uploader
    ${CMAKE_THREAD_LIBS_INIT}
    ${Boost_SYSTEM_LIBRARY}
    ${Boost_FILESYSTEM_LIBRARY}
    ${Boost_PROGRAM_OPTIONS_LIBRARY}
    slbu-lib
)

if(WIN32)
	target_link_libraries(syslog-bulk-uploader
		${Boost_REGEX_LIBRARY}
		${Boost_CHRONO_LIBRARY}
	)
endif()

install(TARGETS syslog-bulk-uploader DESTINATION bin)

##
## Installers configuration
##
include(InstallRequiredSystemLibraries)
set(CPACK_GENERATOR "RPM;DEB;TGZ")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${VER_NAME}")
set(CPACK_PACKAGE_VENDOR "<NAME> <<EMAIL>>")
set(CPACK_PACKAGE_CONTACT "${CPACK_PACKAGE_VENDOR}")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/PackageDescription.txt")<commit_msg>Configure appropriate packaging for different platforms<commit_after>set(BOOST_LIBS date_time filesystem system thread program_options)
if(WIN32)
	list(APPEND BOOST_LIBS regex chrono)
endif()

find_package(Boost COMPONENTS ${BOOST_LIBS} REQUIRED)
find_package(Threads)

configure_file("config.h.in" "config.h")

include_directories(
    ${PROJECT_BINARY_DIR}
    ${Boost_INCLUDE_DIRS}
)

add_library(slbu-lib 
    Facility.cpp
    Severity.cpp
    SyslogBulkUploader.cpp
    SyslogMessage.cpp
    UDPWriter.cpp
)
target_link_libraries(slbu-lib 
    ${Boost_DATE_TIME_LIBRARY}
    ${Boost_THREAD_LIBRARY}
)

add_executable(syslog-bulk-uploader main.cpp)
target_link_libraries(syslog-bulk-uploader
    ${CMAKE_THREAD_LIBS_INIT}
    ${Boost_SYSTEM_LIBRARY}
    ${Boost_FILESYSTEM_LIBRARY}
    ${Boost_PROGRAM_OPTIONS_LIBRARY}
    slbu-lib
)

if(WIN32)
	target_link_libraries(syslog-bulk-uploader
		${Boost_REGEX_LIBRARY}
		${Boost_CHRONO_LIBRARY}
	)
endif()

install(TARGETS syslog-bulk-uploader DESTINATION bin)

##
## Installers configuration
##
include(InstallRequiredSystemLibraries)
if(WIN32)
	set(CPACK_GENERATOR "ZIP")
else()
	set(CPACK_GENERATOR "RPM;DEB;TGZ")
endif()
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${VER_NAME}")
set(CPACK_PACKAGE_VENDOR "<NAME> <<EMAIL>>")
set(CPACK_PACKAGE_CONTACT "${CPACK_PACKAGE_VENDOR}")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/PackageDescription.txt")
{'fraction_non_alphanumeric': 0.1054945054945055, 'fraction_numerical': 0.003663003663003663, 'mean_word_length': 7.008797653958944, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2926559', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1052, 'n_words': 133}