<commit_before>cmake_minimum_required(VERSION 2.8)

project(melon C)

enable_testing()

add_definitions(-D_GNU_SOURCE -D_LARGEFILE64_SOURCE -std=c99 -Wall -Wextra)
include_directories(include)

add_library(melon
  src/barrier.c
  src/cond.c
  src/fiber.c
  src/io.c
  src/io_manager.c
  src/melon.c
  src/mutex.c
  src/rwlock.c
  src/sched.c
  src/sem.c
  src/stack_alloc.c
  src/timer_manager.c
)
target_link_libraries(melon pthread rt)
<commit_msg>Updated cmake to support make install<commit_after>cmake_minimum_required(VERSION 2.8)

project(melon C)

enable_testing()

add_definitions(-D_GNU_SOURCE -D_LARGEFILE64_SOURCE -std=c99 -Wall -Wextra)
include_directories(include)

set(MELON_SRCS
  src/barrier.c
  src/cond.c
  src/fiber.c
  src/io.c
  src/io_manager.c
  src/melon.c
  src/mutex.c
  src/rwlock.c
  src/sched.c
  src/sem.c
  src/stack_alloc.c
  src/timer_manager.c
)

add_library(melon SHARED ${MELON_SRCS})
target_link_libraries(melon pthread rt)
set_target_properties(melon PROPERTIES VERSION 0.6.0 SOVERSION 0)

add_library(smelon STATIC ${MELON_SRCS})
target_link_libraries(smelon pthread rt)
set_target_properties(smelon PROPERTIES OUTPUT_NAME melon)

install(TARGETS melon smelon
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib)

install(DIRECTORY include/melon DESTINATION include)

{'fraction_non_alphanumeric': 0.09104820198928845, 'fraction_numerical': 0.01224177505738332, 'mean_word_length': 4.918552036199095, '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': '4066461', 'n_tokens_mistral': 554, 'n_tokens_neox': 539, 'n_words': 91}