<commit_before>cmake_minimum_required(VERSION 2.6)
project(cppa_examples CXX)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wextra -Wall -pedantic") 

# Set up environment paths to cmake modules and libcppa
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})

add_executable(announce_example_1 announce_example_1.cpp)
add_executable(announce_example_2 announce_example_2.cpp)
add_executable(announce_example_3 announce_example_3.cpp)
add_executable(announce_example_4 announce_example_4.cpp)
add_executable(announce_example_5 announce_example_5.cpp)
add_executable(dancing_kirby dancing_kirby.cpp)
add_executable(dining_philosophers dining_philosophers.cpp)
add_executable(hello_world_example hello_world_example.cpp)
add_executable(math_actor_example math_actor_example.cpp)

# search for libs
if(NOT cppa_LIBRARY)
    find_package(Libcppa REQUIRED)
endif (NOT cppa_LIBRARY)

find_package(Boost COMPONENTS thread REQUIRED)

link_directories(${Boost_LIBRARY_DIRS})
include_directories(. ${CPPA_INCLUDE} ${Boost_INCLUDE_DIRS})

set(EXAMPLE_LIBS ${CMAKE_DL_LIBS} ${CPPA_LIBRARY} ${Boost_THREAD_LIBRARY})

target_link_libraries(announce_example_1 ${EXAMPLE_LIBS})
target_link_libraries(announce_example_2 ${EXAMPLE_LIBS})
target_link_libraries(announce_example_3 ${EXAMPLE_LIBS})
target_link_libraries(announce_example_4 ${EXAMPLE_LIBS})
target_link_libraries(announce_example_5 ${EXAMPLE_LIBS})
target_link_libraries(dancing_kirby ${EXAMPLE_LIBS})
target_link_libraries(dining_philosophers ${EXAMPLE_LIBS})
target_link_libraries(hello_world_example ${EXAMPLE_LIBS})
target_link_libraries(math_actor_example ${EXAMPLE_LIBS})<commit_msg>got rid of boost::thread dependency by switching from boost::thread_specific_ptr to pthread_(get|set)specific<commit_after>cmake_minimum_required(VERSION 2.6)
project(cppa_examples CXX)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wextra -Wall -pedantic") 

# Set up environment paths to cmake modules and libcppa
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})

add_executable(announce_example_1 announce_example_1.cpp)
add_executable(announce_example_2 announce_example_2.cpp)
add_executable(announce_example_3 announce_example_3.cpp)
add_executable(announce_example_4 announce_example_4.cpp)
add_executable(announce_example_5 announce_example_5.cpp)
add_executable(dancing_kirby dancing_kirby.cpp)
add_executable(dining_philosophers dining_philosophers.cpp)
add_executable(hello_world_example hello_world_example.cpp)
add_executable(math_actor_example math_actor_example.cpp)

# search for libs
if(NOT cppa_LIBRARY)
    find_package(Libcppa REQUIRED)
endif (NOT cppa_LIBRARY)

find_package(Boost COMPONENTS)

link_directories(${Boost_LIBRARY_DIRS})
include_directories(. ${CPPA_INCLUDE} ${Boost_INCLUDE_DIRS})

set(EXAMPLE_LIBS ${CMAKE_DL_LIBS} ${CPPA_LIBRARY})

target_link_libraries(announce_example_1 ${EXAMPLE_LIBS})
target_link_libraries(announce_example_2 ${EXAMPLE_LIBS})
target_link_libraries(announce_example_3 ${EXAMPLE_LIBS})
target_link_libraries(announce_example_4 ${EXAMPLE_LIBS})
target_link_libraries(announce_example_5 ${EXAMPLE_LIBS})
target_link_libraries(dancing_kirby ${EXAMPLE_LIBS})
target_link_libraries(dining_philosophers ${EXAMPLE_LIBS})
target_link_libraries(hello_world_example ${EXAMPLE_LIBS})
target_link_libraries(math_actor_example ${EXAMPLE_LIBS})
{'fraction_non_alphanumeric': 0.08158368326334733, 'fraction_numerical': 0.011397720455908818, 'mean_word_length': 13.888392857142858, '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': '4703326', 'n_tokens_mistral': 1271, 'n_tokens_neox': 1198, 'n_words': 164}