<commit_before>project(stromx)

set (STROMX_RUNTIME_VERSION_MAJOR 0)
set (STROMX_RUNTIME_VERSION_MINOR 3)
set (STROMX_RUNTIME_VERSION_PATCH 0)

cmake_minimum_required(VERSION 2.8)
enable_testing()

include(CheckTypeSize)
check_type_size("float" FLOAT_SIZE)
check_type_size("double" DOUBLE_SIZE)
if(NOT FLOAT_SIZE EQUAL 4)
    message(FATAL_ERROR "Float32 must be 4 bytes.")
endif()
if(NOT DOUBLE_SIZE EQUAL 8)
    message(FATAL_ERROR "Double must be 8 bytes.")
endif()

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
set(LIB_DIR lib${LIB_SUFFIX})
if(NOT PYTHON_INSTALL_DIR)
    set(PYTHON_INSTALL_DIR "" CACHE FILEPATH "Python install directory")
endif()

if(NOT DOC_INSTALL_DIR)
    set(DOC_INSTALL_DIR "" CACHE FILEPATH "Documentation install directory")
endif()

if(CMAKE_COMPILER_IS_GNUCXX)
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra")
#   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror")
endif(CMAKE_COMPILER_IS_GNUCXX)

if(MSVC)
    add_definitions(/DBOOST_ALL_DYN_LINK)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251 /wd4275 /wd4661")
endif(MSVC)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
    add_definitions(-DDEBUG)
endif(CMAKE_BUILD_TYPE STREQUAL "Debug")

include(UseDoxygen OPTIONAL)
set(DOXYFILE_SOURCE_DIRS "stromx")

set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.47.0 REQUIRED COMPONENTS date_time filesystem regex serialization system thread)

find_package(CppUnit)

find_package(Threads)

find_package(OpenCV REQUIRED core imgproc highgui)

find_package(XercesC)

find_package(LibZip)

if(CPPUNIT_FOUND)<commit_msg>Remove doxygen source directory variable in CMake file<commit_after>project(stromx)

set (STROMX_RUNTIME_VERSION_MAJOR 0)
set (STROMX_RUNTIME_VERSION_MINOR 3)
set (STROMX_RUNTIME_VERSION_PATCH 0)

cmake_minimum_required(VERSION 2.8)
enable_testing()

include(CheckTypeSize)
check_type_size("float" FLOAT_SIZE)
check_type_size("double" DOUBLE_SIZE)
if(NOT FLOAT_SIZE EQUAL 4)
    message(FATAL_ERROR "Float32 must be 4 bytes.")
endif()
if(NOT DOUBLE_SIZE EQUAL 8)
    message(FATAL_ERROR "Double must be 8 bytes.")
endif()

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
set(LIB_DIR lib${LIB_SUFFIX})
if(NOT PYTHON_INSTALL_DIR)
    set(PYTHON_INSTALL_DIR "" CACHE FILEPATH "Python install directory")
endif()

if(NOT DOC_INSTALL_DIR)
    set(DOC_INSTALL_DIR "" CACHE FILEPATH "Documentation install directory")
endif()

if(CMAKE_COMPILER_IS_GNUCXX)
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra")
#   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror")
endif(CMAKE_COMPILER_IS_GNUCXX)

if(MSVC)
    add_definitions(/DBOOST_ALL_DYN_LINK)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251 /wd4275 /wd4661")
endif(MSVC)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
    add_definitions(-DDEBUG)
endif(CMAKE_BUILD_TYPE STREQUAL "Debug")

include(UseDoxygen OPTIONAL)

set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.47.0 REQUIRED COMPONENTS date_time filesystem regex serialization system thread)

find_package(CppUnit)

find_package(Threads)

find_package(OpenCV REQUIRED core imgproc highgui)

find_package(XercesC)

find_package(LibZip)

if(CPPUNIT_FOUND)
{'fraction_non_alphanumeric': 0.09361702127659574, 'fraction_numerical': 0.01641337386018237, 'mean_word_length': 7.615183246073299, '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': '5780698', 'n_tokens_mistral': 1384, 'n_tokens_neox': 1263, 'n_words': 240}