<commit_before> #
 #  listomvg
 #
 # Copyright (c) 2013-2014 FOXEL SA - http://foxel.ch
 # Please read <http://foxel.ch/license> for more information.
 #
 #
 # Author(s):
 #
 #      <NAME> <<EMAIL>>
 #
 #
 # This file is part of the FOXEL project <http://foxel.ch>.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU Affero General Public License for more details.
 #
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  if not, see <http://www.gnu.org/licenses/>.
 #
 #
 # Additional Terms:
 #
 #      You are required to preserve legal notices and author attributions in
 #      that material or in the Appropriate Legal Notices displayed by works
 #      containing it.
 #
 #      You are required to attribute the work as explained in the "Usage and
 #      Attribution" section of <http://foxel.ch/license>.
 #/


cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

project(listomvg C CXX)

# ==============================================================================
#  C / C++ flags
# ==============================================================================
set(CMAKE_CXX_COMPILER g++)
set(CMAKE_BUILD_TYPE Debug)

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
    "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    set(warnings "-Wall -Wextra -pedantic")
    set(cxx_flags "-std=c++11")
endif()

if (NOT CONFIGURED_ONCE)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${warnings} ${cxx_flags}"
        CACHE STRING "Flags used by the compiler during all build types." FORCE)
    set(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS} ${warnings}"
        CACHE STRING "Flags used by the compiler during all build types." FORCE)
endif()

set(LISTOMVG_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

# ==============================================================================
# add a target to generate API documentation with Doxygen
# ===============================================================================
find_package(Doxygen)
if(DOXYGEN_FOUND)
  add_custom_target(doc
        ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/../Doxyfile
        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../
        COMMENT "Generating API documentation with Doxygen" VERBATIM
  )
endif(DOXYGEN_FOUND)

# ==============================================================================
# OpenMP detection
# ==============================================================================
find_package(OpenMP)
if (OPENMP_FOUND)
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
  if (NOT MSVC)
    LIST(APPEND LISTOMVG_LIBRARY_DEPENDENCIES gomp)
  endif (NOT MSVC)
endif (OPENMP_FOUND)


# ==============================================================================
# listomvg check for dependencies
# ==============================================================================

# ------------------------------------------------------------------------------
# pkgconfig / opencv
# ------------------------------------------------------------------------------
find_package(PkgConfig)
find_package(OpenCV REQUIRED)

# ------------------------------------------------------------------------------
# libfastcal
# ------------------------------------------------------------------------------
add_custom_target(
  fastcal
  WORKING_DIRECTORY ${LISTOMVG_SOURCE_DIR}/../lib/libfastcal
  COMMAND make
)

set(LIBFASTCAL_INCLUDE_DIR ${LISTOMVG_SOURCE_DIR}/../lib/libfastcal/src)
set(LIBFASTCAL_LIBS ${LISTOMVG_SOURCE_DIR}/../lib/libfastcal/bin/libfastcal.a)

# ------------------------------------------------------------------------------
# stlplus
# ------------------------------------------------------------------------------
add_custom_target(
  stlplus
  WORKING_DIRECTORY ${LISTOMVG_SOURCE_DIR}/../lib/stlplus3/
  COMMAND cmake .
  COMMAND make
)

set(LIBSTL_LIBS ${LISTOMVG_SOURCE_DIR}/../lib/stlplus3/libstlplus.a)

# ==============================================================================
# Include directories
# ==============================================================================
include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${LIBFASTCAL_INCLUDE_DIR}
  ${LISTOMVG_SOURCE_DIR}/../lib/cmdLine
  ${LISTOMVG_SOURCE_DIR}/../lib/stlAddition
  ${LISTOMVG_SOURCE_DIR}/../lib/stlplus3/filesystemSimplified/
)

# ==============================================================================
# Library list
# ==============================================================================
set(LISTOMVG_LIBRARY_LIST
  ${LIBFASTCAL_LIBS}
  ${OpenCV_LIBS}
  ${LIBSTL_LIBS}
  ${LISTOMVG_LIBRARY_DEPENDENCIES}
)

# ==============================================================================
# Build Executable
# ==============================================================================
add_executable(listomvg
                    tools.cpp
                    types.cpp
                    list.cpp )
target_link_libraries(listomvg
  ${LISTOMVG_LIBRARY_LIST}
)

add_dependencies(listomvg fastcal stlplus)

set(CONFIGURED_ONCE TRUE CACHE INTERNAL
    "A flag showing that CMake has configured at least once.")<commit_msg>moved CMakeList.txt to root of repository<commit_after> #
 #  listomvg
 #
 # Copyright (c) 2013-2014 FOXEL SA - http://foxel.ch
 # Please read <http://foxel.ch/license> for more information.
 #
 #
 # Author(s):
 #
 #      <NAME> <<EMAIL>>
 #
 #
 # This file is part of the FOXEL project <http://foxel.ch>.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU Affero General Public License for more details.
 #
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  if not, see <http://www.gnu.org/licenses/>.
 #
 #
 # Additional Terms:
 #
 #      You are required to preserve legal notices and author attributions in
 #      that material or in the Appropriate Legal Notices displayed by works
 #      containing it.
 #
 #      You are required to attribute the work as explained in the "Usage and
 #      Attribution" section of <http://foxel.ch/license>.
 #/


cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

# ==============================================================================
# Build Executable
# ==============================================================================
add_executable(listomvg
                    tools.cpp
                    types.cpp
                    list.cpp )
target_link_libraries(listomvg
  ${LISTOMVG_LIBRARY_LIST}
)

add_dependencies(listomvg fastcal stlplus)
set_target_properties( listomvg PROPERTIES RUNTIME_OUTPUT_DIRECTORY .. )

install(TARGETS listomvg DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
{'fraction_non_alphanumeric': 0.30295698924731185, 'fraction_numerical': 0.0036290322580645163, 'mean_word_length': 3.361664712778429, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '722572', 'n_tokens_mistral': 2094, 'n_tokens_neox': 1904, 'n_words': 547}