<commit_before>find_package(cpprest REQUIRED)
find_package(Boost 1.54.0 REQUIRED COMPONENTS system filesystem atomic chrono random regex)
find_package(OpenSSL REQUIRED)

include_directories(${CPPREST_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
set(LIBS ${LIBS} ${CPPREST_LIBRARIES} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${CMAKE_DL_LIBS})

set(SOURCE_FILES client.cpp REST/client.cpp REST/REST.cpp)

include_directories(../include ./include)

if(DISCCORD_BUILD_STATIC)
    message("Building disccord as a static library")
    add_library(disccord STATIC ${SOURCE_FILES})
else()
    message("Building disccord as a shared library")
    add_library(disccord SHARED ${SOURCE_FILES})
    
    set_target_properties(disccord PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()

target_include_directories(disccord PUBLIC ../include)
target_link_libraries(disccord ${LIBS})

install(TARGETS disccord DESTINATION /usr/local/lib)<commit_msg>Install header files as well as library files<commit_after>find_package(cpprest REQUIRED)
find_package(Boost 1.54.0 REQUIRED COMPONENTS system filesystem atomic chrono random regex)
find_package(OpenSSL REQUIRED)

include_directories(${CPPREST_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
set(LIBS ${LIBS} ${CPPREST_LIBRARIES} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${CMAKE_DL_LIBS})

set(SOURCE_FILES client.cpp REST/client.cpp REST/REST.cpp)

include_directories(../include ./include)

if(DISCCORD_BUILD_STATIC)
    message("Building disccord as a static library")
    add_library(disccord STATIC ${SOURCE_FILES})
else()
    message("Building disccord as a shared library")
    add_library(disccord SHARED ${SOURCE_FILES})
    
    set_target_properties(disccord PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()

target_include_directories(disccord PUBLIC ../include)
target_link_libraries(disccord ${LIBS})

install(TARGETS disccord DESTINATION /usr/local/lib)
install(DIRECTORY ../include DESTINATION /usr/local/include/disccord)
{'fraction_non_alphanumeric': 0.09794871794871794, 'fraction_numerical': 0.0041025641025641026, 'mean_word_length': 7.163179916317992, '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': '4074793', 'n_tokens_mistral': 711, 'n_tokens_neox': 648, 'n_words': 134}