<commit_before>cmake_minimum_required(VERSION 3.0)
project(utilities)

list(APPEND CMAKE_MODULE_PATH
  ${PROJECT_SOURCE_DIR}/cmake
  $ENV{DEV_LIBS}/cls/cmake
)
include(Utilities)

find_compiler(
  GNU   4.7  "-Wall -Wextra\
              -Wno-unused-variable\
              -Wno-unused-but-set-variable"
  Clang 3.2  "-Wall -Wextra\
              -Wno-unused-variable"
  MSVC  2013 "/W4"
)
set(CMAKE_CXX_STANDARD, 11)

option(USE_MY_PATH "Use my own default library path" OFF)
if(USE_MY_PATH)
  add_default_lib_path($ENV{DEV_LIBS} $ENV{DEV_PLAT})
endif()

include_directories(${PROJECT_SOURCE_DIR}/include)

# find_package(Boost REQUIRED COMPONENTS filesystem thread)
# find_package(Boost REQUIRED)
# include_directories(${Boost_INCLUDE_DIRS})
# target_link_libraries(<target> ${Boost_LIBRARIES})
#
# find_package(OpenCV REQUIRED)
# include_directories(${OpenCV_INCLUDE_DIRS})
# target_link_libraries(<target> ${OpenCV_LIBS})
#
# find_package(Eigen3 REQUIRED)
# include_directories(${EIGEN3_INCLUDE_DIR})
#
# find_package(FFTW REQUIRED)
# include_directories(${FFTW_INCLUDES})
# target_link_libraries(<target> ${FFTW_LIBRARIES})
#
# find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
# set(CMAKE_AUTOUIC ON)
# set(CMAKE_AUTOMOC ON)
# include_directories(${PROJECT_BINARY_DIR})
# target_link_libraries(<target> Qt5::Core Qt5::Gui Qt5::Widgets)
#
# find_package(TBB REQUIRED)
# include_directories(${TBB_INCLUDE_DIRS})
# link_directories(${TBB_LIBRARY_DIRS}) # MSVC issue: could not find tbb_debug.lib
# target_link_libraries(<target> ${TBB_LIBRARIES})

set(SRC_LIST
  test/test.cpp
)

set(HEADER_LIST
  include/cls/cls_defs.h
  include/cls/utilities.h
  include/cls/error.hpp
  include/cls/algorithm.hpp
  include/cls/string.hpp
  include/cls/timer.hpp
  include/cls/cmdparser.hpp
  include/cls/file_sys.hpp
  include/cls/factory.hpp
  include/cls/traits.hpp
  include/cls/eigen.hpp
  include/cls/point_types.hpp
  include/cls/byte_array.hpp
  include/cls/dyn_bitset.hpp
)

add_executable(utilities ${SRC_LIST} ${HEADER_LIST})
# target_link_libraries(utilities)
<commit_msg>Use CMAKE_CXX_STANDARD to set C++ standard<commit_after>cmake_minimum_required(VERSION 3.0)
project(utilities)

set(CMAKE_CXX_STANDARD 14)

list(APPEND CMAKE_MODULE_PATH
  ${PROJECT_SOURCE_DIR}/cmake
  $ENV{DEV_LIBS}/cls/cmake
)
include(Utilities)

find_compiler(
  GNU   4.7  "-Wall -Wextra\
              -Wno-unused-variable\
              -Wno-unused-but-set-variable"
  Clang 3.2  "-Wall -Wextra\
              -Wno-unused-variable"
  MSVC  2013 "/W4"
)

option(USE_MY_PATH "Use my own default library path" OFF)
if(USE_MY_PATH)
  add_default_lib_path($ENV{DEV_LIBS} $ENV{DEV_PLAT})
endif()

include_directories(${PROJECT_SOURCE_DIR}/include)

# find_package(Boost REQUIRED COMPONENTS filesystem thread)
# find_package(Boost REQUIRED)
# include_directories(${Boost_INCLUDE_DIRS})
# target_link_libraries(<target> ${Boost_LIBRARIES})
#
# find_package(OpenCV REQUIRED)
# include_directories(${OpenCV_INCLUDE_DIRS})
# target_link_libraries(<target> ${OpenCV_LIBS})
#
# find_package(Eigen3 REQUIRED)
# include_directories(${EIGEN3_INCLUDE_DIR})
#
# find_package(FFTW REQUIRED)
# include_directories(${FFTW_INCLUDES})
# target_link_libraries(<target> ${FFTW_LIBRARIES})
#
# find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
# set(CMAKE_AUTOUIC ON)
# set(CMAKE_AUTOMOC ON)
# include_directories(${PROJECT_BINARY_DIR})
# target_link_libraries(<target> Qt5::Core Qt5::Gui Qt5::Widgets)
#
# find_package(TBB REQUIRED)
# include_directories(${TBB_INCLUDE_DIRS})
# link_directories(${TBB_LIBRARY_DIRS}) # MSVC issue: could not find tbb_debug.lib
# target_link_libraries(<target> ${TBB_LIBRARIES})

set(SRC_LIST
  test/test.cpp
)

set(HEADER_LIST
  include/cls/cls_defs.h
  include/cls/utilities.h
  include/cls/error.hpp
  include/cls/algorithm.hpp
  include/cls/string.hpp
  include/cls/timer.hpp
  include/cls/cmdparser.hpp
  include/cls/file_sys.hpp
  include/cls/factory.hpp
  include/cls/traits.hpp
  include/cls/eigen.hpp
  include/cls/point_types.hpp
  include/cls/byte_array.hpp
  include/cls/dyn_bitset.hpp
)

add_executable(utilities ${SRC_LIST} ${HEADER_LIST})
# target_link_libraries(utilities)

{'fraction_non_alphanumeric': 0.1216830026296916, 'fraction_numerical': 0.009084389194358116, 'mean_word_length': 5.6944, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3984235', 'n_tokens_mistral': 1698, 'n_tokens_neox': 1616, 'n_words': 223}