<commit_before>cmake_minimum_required (VERSION 2.8.11)
project (mu_coin)

add_definitions (-std=c++11 -Werror=switch -DED25519_CUSTOMHASH -DED25519_CUSTOMRNG)

include_directories (${CMAKE_SOURCE_DIR})

find_package (BerkeleyDB REQUIRED)
include_directories (${BerkeleyDB_INCLUDE_DIR})

find_package (Boost REQUIRED COMPONENTS filesystem system thread)
include_directories (${Boost_INCLUDE_DIR})

find_package (GTest REQUIRED)
include_directories (${GTEST_INCLUDE_DIR})

find_package (CryptoPP REQUIRED)
include_directories (${CRYPTOPP_INCLUDE_DIR})

find_package (Qt5 REQUIRED COMPONENTS Core Gui Widgets)

find_package (cppnetlib 0.11.0 REQUIRED)
include_directories (${CPPNETLIB_INCLUDE_DIRS})

add_library (mu_coin
	mu_coin/mu_coin.hpp
	mu_coin/mu_coin.cpp
    ed25519-donna/ed25519-hash-custom.h
    ed25519-donna/ed25519-randombytes-custom.h
    ed25519-donna/ed25519.h
    ed25519-donna/ed25519.cpp)

add_executable (mu_coin_test 
	mu_coin_test/entry.cpp
	mu_coin_test/ledger.cpp
	mu_coin_test/block.cpp
    mu_coin_test/db_test.cpp
    mu_coin_test/test_network.cpp
    mu_coin_test/wallet_test.cpp)
    
add_executable (mu_coin_qt
    mu_coin_qt/entry.cpp
    mu_coin_qt/qt.cpp
    mu_coin_qt/qt.hpp)

target_link_libraries (mu_coin_test mu_coin ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} ${GTEST_LIBRARY} ${GTEST_MAIN_LIBRARY} ${CRYPTOPP_LIBRARY} ${BerkeleyDB_LIBRARIES} ${CPPNETLIB_LIBRARIES})

target_link_libraries (mu_coin_qt mu_coin ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} ${GTEST_LIBRARY} ${GTEST_MAIN_LIBRARY} ${CRYPTOPP_LIBRARY} ${BerkeleyDB_LIBRARIES} ${CPPNETLIB_LIBRARIES} Qt5::Core Qt5::Gui Qt5::Widgets ${QT_QTGUI_LIBRARY})<commit_msg>Adding pthreads.<commit_after>cmake_minimum_required (VERSION 2.8.11)
project (mu_coin)

add_definitions (-std=c++11 -Werror=switch -DED25519_CUSTOMHASH -DED25519_CUSTOMRNG)

include_directories (${CMAKE_SOURCE_DIR})

find_package (BerkeleyDB REQUIRED)
include_directories (${BerkeleyDB_INCLUDE_DIR})

find_package (Boost REQUIRED COMPONENTS filesystem system thread)
include_directories (${Boost_INCLUDE_DIR})

find_package (GTest REQUIRED)
include_directories (${GTEST_INCLUDE_DIR})

find_package (CryptoPP REQUIRED)
include_directories (${CRYPTOPP_INCLUDE_DIR})

find_package (Qt5 REQUIRED COMPONENTS Core Gui Widgets)

find_package (cppnetlib 0.11.0 REQUIRED)
include_directories (${CPPNETLIB_INCLUDE_DIRS})

add_library (mu_coin
	mu_coin/mu_coin.hpp
	mu_coin/mu_coin.cpp
    ed25519-donna/ed25519-hash-custom.h
    ed25519-donna/ed25519-randombytes-custom.h
    ed25519-donna/ed25519.h
    ed25519-donna/ed25519.cpp)

add_executable (mu_coin_test 
	mu_coin_test/entry.cpp
	mu_coin_test/ledger.cpp
	mu_coin_test/block.cpp
    mu_coin_test/db_test.cpp
    mu_coin_test/test_network.cpp
    mu_coin_test/wallet_test.cpp)
    
add_executable (mu_coin_qt
    mu_coin_qt/entry.cpp
    mu_coin_qt/qt.cpp
    mu_coin_qt/qt.hpp)

target_link_libraries (mu_coin_test mu_coin ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} ${GTEST_LIBRARY} ${GTEST_MAIN_LIBRARY} ${CRYPTOPP_LIBRARY} ${BerkeleyDB_LIBRARIES} ${CPPNETLIB_LIBRARIES} pthread)

target_link_libraries (mu_coin_qt mu_coin ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} ${GTEST_LIBRARY} ${GTEST_MAIN_LIBRARY} ${CRYPTOPP_LIBRARY} ${BerkeleyDB_LIBRARIES} ${CPPNETLIB_LIBRARIES} Qt5::Core Qt5::Gui Qt5::Widgets ${QT_QTGUI_LIBRARY} pthread)
{'fraction_non_alphanumeric': 0.09703426432479124, 'fraction_numerical': 0.036855744313273826, 'mean_word_length': 7.411622276029056, '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': '6666865', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1374, 'n_words': 194}