<commit_before>set(BUILD_SHARED_LIBS true)

set(
   LIBPUD_SRC
   pud.c
   jpeg.c
   defaults.c
   img.c
   parse.c
   print.c
   private.c
   tiles.c
   utils.c
)

include_directories(
   ${CMAKE_CURRENT_SOURCE_DIR}
   ${CMAKE_CURRENT_SOURCE_DIR}/../include
   ${JPEG_INCLUDES_DIR}
)


add_definitions(-Wall)
add_definitions(-std=c99)

add_library(libpud SHARED ${LIBPUD_SRC})

target_link_libraries(${LIBPUD_LIBRARIES})

install(
   TARGETS libpud
   LIBRARY DESTINATION lib<commit_msg>cmake: remove 'lib' prefix to build libpud (avoids double prefix)<commit_after>set(BUILD_SHARED_LIBS true)

set(
   LIBPUD_SRC
   pud.c
   jpeg.c
   defaults.c
   img.c
   parse.c
   print.c
   private.c
   tiles.c
   utils.c
)

include_directories(
   ${CMAKE_CURRENT_SOURCE_DIR}
   ${CMAKE_CURRENT_SOURCE_DIR}/../include
   ${JPEG_INCLUDES_DIR}
)


add_definitions(-Wall)
add_definitions(-std=c99)

add_library(libpud SHARED ${LIBPUD_SRC})

# Disable the prefix because it is already in the name
# The name cannot (?) be changed because there is another target called pud
SET_TARGET_PROPERTIES(libpud PROPERTIES PREFIX "")

target_link_libraries(${LIBPUD_LIBRARIES})

install(
   TARGETS libpud
   LIBRARY DESTINATION lib
{'fraction_non_alphanumeric': 0.09248554913294797, 'fraction_numerical': 0.0033030553261767133, 'mean_word_length': 4.17948717948718, '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': '3173030', 'n_tokens_mistral': 497, 'n_tokens_neox': 473, 'n_words': 92}