<commit_before>cmake_minimum_required(VERSION 2.8)
project(Libdispatch-proton)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/qpid-proton/tools/cmake/Modules/")

add_subdirectory(qpid-proton EXCLUDE_FROM_ALL)
add_subdirectory(xdispatch EXCLUDE_FROM_ALL)

if (MSVC)
	set(CMAKE_DEBUG_POSTFIX "d")
endif (MSVC)

add_library(libdispatch_proton STATIC lp.c)
set_source_files_properties(lp.c PROPERTIES LANGUAGE CXX)
include_directories(libdispatch_proton "qpid-proton/proton-c/include" "xdispatch/libdispatch/include")
target_link_libraries(libdispatch_proton dispatch qpid-proton)

add_executable(ggg ggg.c)
set_source_files_properties(ggg.c PROPERTIES LANGUAGE CXX)
target_link_libraries(ggg libdispatch_proton)
<commit_msg>use native libdispatch on OSX<commit_after>cmake_minimum_required(VERSION 2.8)
project(Libdispatch-proton)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/qpid-proton/tools/cmake/Modules/")

add_subdirectory(qpid-proton EXCLUDE_FROM_ALL)
add_subdirectory(xdispatch EXCLUDE_FROM_ALL)

if (MSVC)
	set(CMAKE_DEBUG_POSTFIX "d")
endif (MSVC)

add_library(libdispatch_proton STATIC lp.c)
set_source_files_properties(lp.c PROPERTIES LANGUAGE CXX)
include_directories(libdispatch_proton "qpid-proton/proton-c/include" "xdispatch/libdispatch/include")
target_link_libraries(libdispatch_proton qpid-proton)
if (HAVE_NATIVE_DISPATCH_H)
    target_link_libraries(libdispatch_proton -lSystem.B)
else( HAVE_NATIVE_DISPATCH_H)
    target_link_libraries(libdispatch_proton dispatch)
endif( HAVE_NATIVE_DISPATCH_H)

add_executable(ggg ggg.c)
set_source_files_properties(ggg.c PROPERTIES LANGUAGE CXX)
target_link_libraries(ggg libdispatch_proton)

{'fraction_non_alphanumeric': 0.08659549228944247, 'fraction_numerical': 0.002372479240806643, 'mean_word_length': 10.246666666666666, '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': '3656033', 'n_tokens_mistral': 658, 'n_tokens_neox': 639, 'n_words': 87}