<commit_before>cmake_minimum_required (VERSION 3.2)
project (Super-Deduper)

file(GLOB sources "src/*.cpp")

message( status "sources: " ${sources})


set(COMMON_INCLUDES ${CMAKE_SOURCE_DIR}/common/src)

set(PROJECT_LINK_LIBS hts_common)
link_directories(${CMAKE_BINARY_DIR}/common)

FIND_PACKAGE( Boost 1.56 COMPONENTS program_options iostreams filesystem REQUIRED )
include_directories(${COMMON_INCLUDES} ${Boost_INCLUDE_DIR} )


add_executable(super_deduper ${sources})
target_link_libraries(super_deduper ${PROJECT_LINK_LIBS} ${Boost_LIBRARIES})

add_custom_target(testSD
  DEPENDS super_deduper
  COMMAND ${CMAKE_COMMAND} -E env "PATH=$ENV{PATH}:${CMAKE_BINARY_DIR}/Super-Deduper" python ${CMAKE_SOURCE_DIR}/Super-Deduper/test_suite/testSD.py
  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/Super-Deduper/test_suite
)

add_custom_target(valgrind
  DEPENDS super_deduper<commit_msg>adding system dep for mac build<commit_after>cmake_minimum_required (VERSION 3.2)
project (Super-Deduper)

file(GLOB sources "src/*.cpp")

message( status "sources: " ${sources})


set(COMMON_INCLUDES ${CMAKE_SOURCE_DIR}/common/src)

set(PROJECT_LINK_LIBS hts_common)
link_directories(${CMAKE_BINARY_DIR}/common)

FIND_PACKAGE( Boost 1.56 COMPONENTS system program_options iostreams filesystem REQUIRED )
include_directories(${COMMON_INCLUDES} ${Boost_INCLUDE_DIR} )


add_executable(super_deduper ${sources})
target_link_libraries(super_deduper ${PROJECT_LINK_LIBS} ${Boost_LIBRARIES})

add_custom_target(testSD
  DEPENDS super_deduper
  COMMAND ${CMAKE_COMMAND} -E env "PATH=$ENV{PATH}:${CMAKE_BINARY_DIR}/Super-Deduper" python ${CMAKE_SOURCE_DIR}/Super-Deduper/test_suite/testSD.py
  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/Super-Deduper/test_suite
)

add_custom_target(valgrind
  DEPENDS super_deduper
{'fraction_non_alphanumeric': 0.10780460415496912, 'fraction_numerical': 0.005614823133071308, 'mean_word_length': 8.845303867403315, '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': '7030355', 'n_tokens_mistral': 701, 'n_tokens_neox': 654, 'n_words': 99}