<commit_before>cmake_minimum_required(VERSION 3.14)
project(httpserver VERSION 1.4.2)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} $ENV{CXXFLAGS} $ENV{CPPFLAGS}")
set(CMAKE_CXX_STANDARD 14) # -std=c++14
option(BUILD_EXAMPLE "Build example code" OFF)

include(deps.cmake)

add_compile_definitions(BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED=1)
set(Boost_USE_STATIC_LIBS   ON)
find_package(Boost COMPONENTS system thread regex stacktrace_addr2line)
find_package(OpenSSL REQUIRED) 
find_package(ZLIB REQUIRED)

include_directories(./ ${OPENSSL_INCLUDE_DIRS})

file(GLOB CPP_FILES httpserver/*/*.cpp httpserver/*.cpp)
file(GLOB HPP_FILES httpserver/*/*.h httpserver/*.h)
add_library(${PROJECT_NAME} ${CPP_FILES} ${HPP_FILES})
target_include_directories(${PROJECT_NAME} PUBLIC ./)
target_link_libraries(${PROJECT_NAME}
        ${Boost_LIBRARIES}
        ${OPENSSL_SSL_LIBRARY}
        ${OPENSSL_CRYPTO_LIBRARY}
        d3util
        pthread
        ZLIB::ZLIB
)


#include(jsoncpp.cmake)
#target_include_directories(${PROJECT_NAME} PUBLIC ${JSONCPP_INCLUDE})

if(BUILD_EXAMPLE)
  add_subdirectory(exemplo)
endif()

if( CMAKE_COMPILER_IS_MINGW )
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Og -Wa,-mbig-obj")
elseif( MSVC )<commit_msg>deixando a lib como estatica<commit_after>cmake_minimum_required(VERSION 3.14)
project(httpserver VERSION 1.4.2)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} $ENV{CXXFLAGS} $ENV{CPPFLAGS}")
set(CMAKE_CXX_STANDARD 14) # -std=c++14
option(BUILD_EXAMPLE "Build example code" OFF)

include(deps.cmake)

add_compile_definitions(BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED=1)
set(Boost_USE_STATIC_LIBS   ON)
find_package(Boost COMPONENTS system thread regex stacktrace_addr2line)
find_package(OpenSSL REQUIRED) 
find_package(ZLIB REQUIRED)

include_directories(./ ${OPENSSL_INCLUDE_DIRS})

file(GLOB CPP_FILES httpserver/*/*.cpp httpserver/*.cpp)
file(GLOB HPP_FILES httpserver/*/*.h httpserver/*.h)
add_library(${PROJECT_NAME} STATIC ${CPP_FILES} ${HPP_FILES})
target_include_directories(${PROJECT_NAME} PUBLIC ./)
target_link_libraries(${PROJECT_NAME}
        ${Boost_LIBRARIES}
        ${OPENSSL_SSL_LIBRARY}
        ${OPENSSL_CRYPTO_LIBRARY}
        d3util
        pthread
        ZLIB::ZLIB
)


#include(jsoncpp.cmake)
#target_include_directories(${PROJECT_NAME} PUBLIC ${JSONCPP_INCLUDE})

if(BUILD_EXAMPLE)
  add_subdirectory(exemplo)
endif()

if( CMAKE_COMPILER_IS_MINGW )
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Og -Wa,-mbig-obj")
elseif( MSVC )
{'fraction_non_alphanumeric': 0.11659919028340081, 'fraction_numerical': 0.010526315789473684, 'mean_word_length': 6.487878787878788, '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': '4365409', 'n_tokens_mistral': 1027, 'n_tokens_neox': 934, 'n_words': 141}