<commit_before>#    CMakeLists.txt for wire library
#
#    @author zmij
#    @date Nov 30, 2015

cmake_minimum_required(VERSION 2.6)

# Set library name here
set(lib_name wire)
string(TOUPPER ${lib_name} LIB_NAME)

set(_pname ${lib_name})
if (PROJECT_VERSION)
    set(_pversion ${PROJECT_VERSION})
else()
    set(_pversion 0.1.0)
endif()

if (${CMAKE_VERSION} VERSION_GREATER "3.0")
    cmake_policy(SET CMP0048 NEW)
    project(${_pname} VERSION ${_pversion})
else()
    project(${_pname})
    set(PROJECT_VERSION ${_pversion})
endif()

option(BUILD_TESTS "Build tests for ${lib_name} library" ON)
option(COMPILE_TESTS "Test compile generated sources" OFF)
include(cmake/scripts/wire2cpp.cmake)

set(
    BOOST_COMPONENTS
    system
    thread
    program_options
    filesystem
)
set(BOOST_VERSION 1.58) # We want endian library.

find_package(Boost ${BOOST_VERSION} COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
find_package(Threads REQUIRED)
find_package(OpenSSL REQUIRED)

if (NOT TIP_IRI_INCLUDE_DIRS)
    set(_TIP_IRI_SUBTREE ON)
endif()

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/include
    ${CMAKE_CURRENT_SOURCE_DIR}/src
    ${CMAKE_CURRENT_BINARY_DIR}/src
    ${Boost_INCLUDE_DIRS}
)
wire_include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/idl
)
set(WIRE_IDL_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/idl)
add_definitions("-std=c++11")
add_definitions(-Wall -Werror -pedantic
    -Wno-unused-local-typedefs
    -Wno-unused-parameter
    -Wno-unused-function
)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_definitions(
    -Wno-unused-local-typedef
    -Wno-mismatched-tags
    -Wno-unused-variable
    -Wno-gnu-zero-variadic-macro-arguments
    -Wno-unsequenced
    -Wno-keyword-macro
    -Wno-macro-redefined
)<commit_msg>Keep gcc happy, too.<commit_after>#    CMakeLists.txt for wire library
#
#    @author zmij
#    @date Nov 30, 2015

cmake_minimum_required(VERSION 2.6)

# Set library name here
set(lib_name wire)
string(TOUPPER ${lib_name} LIB_NAME)

set(_pname ${lib_name})
if (PROJECT_VERSION)
    set(_pversion ${PROJECT_VERSION})
else()
    set(_pversion 0.1.0)
endif()

if (${CMAKE_VERSION} VERSION_GREATER "3.0")
    cmake_policy(SET CMP0048 NEW)
    project(${_pname} VERSION ${_pversion})
else()
    project(${_pname})
    set(PROJECT_VERSION ${_pversion})
endif()

option(BUILD_TESTS "Build tests for ${lib_name} library" ON)
option(COMPILE_TESTS "Test compile generated sources" OFF)
include(cmake/scripts/wire2cpp.cmake)

set(
    BOOST_COMPONENTS
    system
    thread
    program_options
    filesystem
)
set(BOOST_VERSION 1.58) # We want endian library.

find_package(Boost ${BOOST_VERSION} COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
find_package(Threads REQUIRED)
find_package(OpenSSL REQUIRED)

if (NOT TIP_IRI_INCLUDE_DIRS)
    set(_TIP_IRI_SUBTREE ON)
endif()

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/include
    ${CMAKE_CURRENT_SOURCE_DIR}/src
    ${CMAKE_CURRENT_BINARY_DIR}/src
    ${Boost_INCLUDE_DIRS}
)
wire_include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/idl
)
set(WIRE_IDL_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/idl)
add_definitions("-std=c++11")
add_definitions(-Wall -Werror -pedantic
    -Wno-unused-local-typedefs
    -Wno-unused-parameter
    -Wno-unused-function
    -Wno-unknown-pragmas
)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_definitions(
    -Wno-unused-local-typedef
    -Wno-mismatched-tags
    -Wno-unused-variable
    -Wno-gnu-zero-variadic-macro-arguments
    -Wno-unsequenced
    -Wno-keyword-macro
    -Wno-macro-redefined
)
{'fraction_non_alphanumeric': 0.11632536973833903, 'fraction_numerical': 0.013083048919226393, 'mean_word_length': 4.663446054750403, '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': '1145957', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1348, 'n_words': 236}