<commit_before>
FILE(GLOB_RECURSE
    ATK_DYNAMIC_SRC
    *.cpp
)

FILE(GLOB_RECURSE
    ATK_DYNAMIC_HEADERS
    *.h
)

SOURCE_GROUP_BY_FOLDER(ATK_DYNAMIC)

include_directories(${PROJECT_SOURCE_DIR})

if(ENABLE_STATIC_LIBRARIES)
add_library(ATKDynamic_static
    STATIC
    ${ATK_DYNAMIC_SRC} ${ATK_DYNAMIC_HEADERS}
)

set_target_properties (ATKDynamic_static PROPERTIES
    FOLDER C++/static
)

INSTALL(TARGETS ATKDynamic_static
    RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/ COMPONENT libraries
    LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/ COMPONENT libraries
    ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/ COMPONENT libraries
    )
endif(ENABLE_STATIC_LIBRARIES)

if(ENABLE_SHARED_LIBRARIES)
add_definitions(-DBUILD_ATK_DYNAMIC)
add_definitions(-DATK_SHARED)

add_library(ATKDynamic
    SHARED
    ${ATK_DYNAMIC_SRC} ${ATK_DYNAMIC_HEADERS}
)

set_target_properties (ATKDynamic PROPERTIES
    FOLDER C++/shared
)

target_link_libraries(ATKDynamic ATKCore)

stagedebug(ATKDynamic)

INSTALL(TARGETS ATKDynamic
    RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/ COMPONENT libraries
    LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/ COMPONENT libraries
    ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/ COMPONENT libraries
    )
endif(ENABLE_SHARED_LIBRARIES)

INSTALL(FILES ${ATK_DYNAMIC_HEADERS}
   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/ATK/Dynamic<commit_msg>Missing pthread library on Linux? Probably need to try the -pthread flag instead?<commit_after>
FILE(GLOB_RECURSE
    ATK_DYNAMIC_SRC
    *.cpp
)

FILE(GLOB_RECURSE
    ATK_DYNAMIC_HEADERS
    *.h
)

SOURCE_GROUP_BY_FOLDER(ATK_DYNAMIC)

include_directories(${PROJECT_SOURCE_DIR})

if(ENABLE_STATIC_LIBRARIES)
add_library(ATKDynamic_static
    STATIC
    ${ATK_DYNAMIC_SRC} ${ATK_DYNAMIC_HEADERS}
)

set_target_properties (ATKDynamic_static PROPERTIES
    FOLDER C++/static
)

INSTALL(TARGETS ATKDynamic_static
    RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/ COMPONENT libraries
    LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/ COMPONENT libraries
    ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/ COMPONENT libraries
    )
endif(ENABLE_STATIC_LIBRARIES)

if(ENABLE_SHARED_LIBRARIES)
add_definitions(-DBUILD_ATK_DYNAMIC)
add_definitions(-DATK_SHARED)

add_library(ATKDynamic
    SHARED
    ${ATK_DYNAMIC_SRC} ${ATK_DYNAMIC_HEADERS}
)

set_target_properties (ATKDynamic PROPERTIES
    FOLDER C++/shared
)

target_link_libraries(ATKDynamic ATKCore)
if(LINUX)
target_link_libraries(ATKDynamic pthread)
endif(LINUX)

stagedebug(ATKDynamic)

INSTALL(TARGETS ATKDynamic
    RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/ COMPONENT libraries
    LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/ COMPONENT libraries
    ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/ COMPONENT libraries
    )
endif(ENABLE_SHARED_LIBRARIES)

INSTALL(FILES ${ATK_DYNAMIC_HEADERS}
   DESTINATION ${CMAKE_INSTALL_PREFIX}/include/ATK/Dynamic
{'fraction_non_alphanumeric': 0.07565902088325915, 'fraction_numerical': 0.0, 'mean_word_length': 6.341708542713568, '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': '6581257', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1085, 'n_words': 163}