<commit_before>cmake_minimum_required(VERSION 3.5)
project(frnetlib_test)

if( WIN32 )
    set( ADDITIONAL_LIB ws2_32 )  # Ws2_32.lib

	set( FRNETLIB_ROOT_PATH "C:/tools/cmake_install_libs/frnetlib/" ) # change it to your install directory

	set( FRNETLIB_INCLUDE_PATH ${FRNETLIB_ROOT_PATH}/include )
	set( FRNETLIB_LIB ${FRNETLIB_ROOT_PATH}/lib/frnetlib-s-d.lib )

	include_directories( ${FRNETLIB_INCLUDE_PATH} )
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -std=c++14")

elseif(APPLE)
	set( ADDITIONAL_LIB "" )
else()
    set( ADDITIONAL_LIB "" )
	#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -m64 -fPIC -std=c++14 -pthread -lmbedtls -lmbedx509 -lmbedcrypto")
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -m64 -fPIC -std=c++14 -pthread")
endif()


add_executable(${PROJECT_NAME} ../main.cpp)
add_executable(packet packet.cpp)
add_executable(tcpsocket_server tcpsocket_server.cpp)
add_executable(tcpsocket_client tcpsocket_client.cpp)

target_link_libraries(${PROJECT_NAME} ${FRNETLIB_LIB} ${ADDITIONAL_LIB})
target_link_libraries(packet ${FRNETLIB_LIB} ${ADDITIONAL_LIB})
target_link_libraries(tcpsocket_server ${FRNETLIB_LIB} ${ADDITIONAL_LIB})
target_link_libraries(tcpsocket_client ${FRNETLIB_LIB} ${ADDITIONAL_LIB})<commit_msg>add FRNETLIB_LIB for apple and linux.<commit_after>cmake_minimum_required(VERSION 3.5)
project(frnetlib_test)

if( WIN32 )
    set( ADDITIONAL_LIB ws2_32 )  # Ws2_32.lib

	set( FRNETLIB_ROOT_PATH "C:/tools/cmake_install_libs/frnetlib/" ) # change it to your install directory

	set( FRNETLIB_INCLUDE_PATH ${FRNETLIB_ROOT_PATH}/include )
	set( FRNETLIB_LIB ${FRNETLIB_ROOT_PATH}/lib/frnetlib-s-d.lib )

	include_directories( ${FRNETLIB_INCLUDE_PATH} )
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -std=c++14")

elseif(APPLE)
	set( ADDITIONAL_LIB "" )
	set( FRNETLIB_LIB frnetlib)
else()
    set( ADDITIONAL_LIB "" )
	set( FRNETLIB_LIB frnetlib)
	#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -m64 -fPIC -std=c++14 -pthread -lmbedtls -lmbedx509 -lmbedcrypto")
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -m64 -fPIC -std=c++14 -pthread")
endif()


add_executable(${PROJECT_NAME} ../main.cpp)
add_executable(packet packet.cpp)
add_executable(tcpsocket_server tcpsocket_server.cpp)
add_executable(tcpsocket_client tcpsocket_client.cpp)

target_link_libraries(${PROJECT_NAME} ${FRNETLIB_LIB} ${ADDITIONAL_LIB})
target_link_libraries(packet ${FRNETLIB_LIB} ${ADDITIONAL_LIB})
target_link_libraries(tcpsocket_server ${FRNETLIB_LIB} ${ADDITIONAL_LIB})
target_link_libraries(tcpsocket_client ${FRNETLIB_LIB} ${ADDITIONAL_LIB})
{'fraction_non_alphanumeric': 0.13078703703703703, 'fraction_numerical': 0.022376543209876542, 'mean_word_length': 7.557755775577558, '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': '735451', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1043, 'n_words': 158}