<commit_before>cmake_minimum_required(VERSION 2.8)

aux_source_directory("core" CORE)
aux_source_directory("rtp" RTP)

add_library(kmsclib SHARED ${CORE} ${RTP})

find_package(PkgConfig)

include_directories(kmsclib ${GLIB2_INCLUDE_DIRS})
target_link_libraries(kmsclib ${GLIB2_LIBRARIES})

include_directories(kmsclib ${GSTREAMER_INCLUDE_DIRS})
target_link_libraries(kmsclib ${GSTREAMER_LIBRARIES})

include_directories(kmsclib core rtp)

install(TARGETS kmsclib LIBRARY DESTINATION ${LIB_PREFIX} PERMISSIONS OWNER_EXECUTE OWNER_READ GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)

file(GLOB INCLUDES_CORE "core/*.h")

install(FILES ${INCLUDES_CORE} DESTINATION ${INCLUDE_PREFIX} PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)

file(GLOB INCLUDES_RTP "rtp/*.h")

install(FILES ${INCLUDES_RTP} DESTINATION ${INCLUDE_PREFIX}/rtp PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)<commit_msg>Compile shared and static library for kmsc<commit_after>cmake_minimum_required(VERSION 2.8)

aux_source_directory("core" CORE)
aux_source_directory("rtp" RTP)

add_library(kmsclib SHARED ${CORE} ${RTP})
add_library(kmsclibst STATIC ${CORE} ${RTP})

find_package(PkgConfig)

include_directories(kmsclib ${GLIB2_INCLUDE_DIRS})
target_link_libraries(kmsclib ${GLIB2_LIBRARIES})

include_directories(kmsclib ${GSTREAMER_INCLUDE_DIRS})
target_link_libraries(kmsclib ${GSTREAMER_LIBRARIES})

include_directories(kmsclib core rtp)

install(TARGETS kmsclib LIBRARY DESTINATION ${LIB_PREFIX} PERMISSIONS OWNER_EXECUTE OWNER_READ GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
install(TARGETS kmsclibst ARCHIVE DESTINATION ${LIB_PREFIX} PERMISSIONS OWNER_EXECUTE OWNER_READ GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)

file(GLOB INCLUDES_CORE "core/*.h")

install(FILES ${INCLUDES_CORE} DESTINATION ${INCLUDE_PREFIX} PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)

file(GLOB INCLUDES_RTP "rtp/*.h")

install(FILES ${INCLUDES_RTP} DESTINATION ${INCLUDE_PREFIX}/rtp PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
{'fraction_non_alphanumeric': 0.08867735470941884, 'fraction_numerical': 0.004008016032064128, 'mean_word_length': 10.95808383233533, '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': '4289238', 'n_tokens_mistral': 838, 'n_tokens_neox': 747, 'n_words': 133}