<commit_before>cmake_minimum_required(VERSION 3.0)

# Setup source files
set(SOURCE_FILES
        Base64.cpp
        Command.cpp
        Config.cpp
        Database.cpp
        DataBuffer.cpp
        File.cpp
        Functions.c
        GenericCommand.cpp
        Hash.cpp
        HTTP_Server.cpp
        INIConfig.cpp
        IRC_Client.cpp
        Jupiter.cpp
        Plugin.cpp
        Rehash.cpp
        SecureSocket.cpp
        Socket.cpp
        TCPSocket.cpp
        Timer.cpp
        UDPSocket.cpp)

# Setup library build target
add_library(jupiter SHARED ${SOURCE_FILES})

# Find OpenSSL
find_package(OpenSSL REQUIRED)

# Setup include directories
target_include_directories(jupiter PUBLIC ../include)
target_include_directories(jupiter PRIVATE ../include/Jupiter)
target_include_directories(jupiter PRIVATE ${OPENSSL_INCLUDE_DIR})

# Setup platform-specific definitions
target_compile_definitions(jupiter PRIVATE ${JUPITER_PRIVATE_DEFS})<commit_msg>Added linkage to OpenSSL<commit_after>cmake_minimum_required(VERSION 3.0)

# Setup source files
set(SOURCE_FILES
        Base64.cpp
        Command.cpp
        Config.cpp
        Database.cpp
        DataBuffer.cpp
        File.cpp
        Functions.c
        GenericCommand.cpp
        Hash.cpp
        HTTP_Server.cpp
        INIConfig.cpp
        IRC_Client.cpp
        Jupiter.cpp
        Plugin.cpp
        Rehash.cpp
        SecureSocket.cpp
        Socket.cpp
        TCPSocket.cpp
        Timer.cpp
        UDPSocket.cpp)

# Setup library build target
add_library(jupiter SHARED ${SOURCE_FILES})

# Find and link OpenSSL
find_package(OpenSSL REQUIRED)
target_link_libraries(jupiter
        OpenSSL::SSL
        OpenSSL::Crypto)

# Setup include directories
target_include_directories(jupiter PUBLIC ../include)
target_include_directories(jupiter PRIVATE ../include/Jupiter)
target_include_directories(jupiter PRIVATE ${OPENSSL_INCLUDE_DIR})

# Setup platform-specific definitions
target_compile_definitions(jupiter PRIVATE ${JUPITER_PRIVATE_DEFS})
{'fraction_non_alphanumeric': 0.06454816285998013, 'fraction_numerical': 0.003972194637537239, 'mean_word_length': 2.7947269303201505, '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': '3796788', 'n_tokens_mistral': 630, 'n_tokens_neox': 588, 'n_words': 117}