<commit_before>cmake_minimum_required(VERSION 2.8)
project(telepathy-steam)

include(CheckCXXCompilerFlag)
include(FindPkgConfig)
include(GNUInstallDirs)

# check required compiler flags
check_cxx_compiler_flag("-std=c++11" HAS_CXX11)
if(NOT HAS_CXX11)
  message(FATAL_ERROR "C++11 support required")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

# check additional compiler flags
foreach(flag -Werror=switch -Werror=return-type -fvisibility=hidden)
  string(REGEX REPLACE "^-" "" flag_name ${flag})
  check_cxx_compiler_flag(${flag} HAS_${flag_name})
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}")
endforeach()

# add some common sense linker flags
foreach(type EXE MODULE SHARED STATIC)
  set(CMAKE_${type}_LINKER_FLAGS "${CMAKE_${type}_LINKER_FLAGS} -Wl,--as-needed -Wl,-z,defs")
endforeach()

# find all required libraries first

# telepathy-glib
pkg_search_module(GOBJECT REQUIRED gobject-2.0)
pkg_search_module(TP_GLIB REQUIRED telepathy-glib)

include_directories(
  ${GOBJECT_INCLUDE_DIRS}<commit_msg>cmake: disable C compiler and reworkd rependencies check<commit_after>cmake_minimum_required(VERSION 2.8)
project(telepathy-steam CXX)

include(CheckCXXCompilerFlag)
include(FindPkgConfig)
include(GNUInstallDirs)

# check required compiler flags
check_cxx_compiler_flag("-std=c++11" HAS_CXX11)
if(NOT HAS_CXX11)
  message(FATAL_ERROR "C++11 support required")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

# check additional compiler flags
foreach(flag -Werror=switch -Werror=return-type -fvisibility=hidden)
  string(REGEX REPLACE "^-" "" flag_name ${flag})
  check_cxx_compiler_flag(${flag} HAS_${flag_name})
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}")
endforeach()

# add some common sense linker flags
foreach(type EXE MODULE SHARED STATIC)
  set(CMAKE_${type}_LINKER_FLAGS "${CMAKE_${type}_LINKER_FLAGS} -Wl,--as-needed -Wl,-z,defs")
endforeach()

# find all required libraries first
pkg_check_modules(GOBJECT REQUIRED gobject-2.0)
pkg_check_modules(TP_GLIB REQUIRED telepathy-glib>=0.11.11)

include_directories(
  ${GOBJECT_INCLUDE_DIRS}
{'fraction_non_alphanumeric': 0.1224976167778837, 'fraction_numerical': 0.01572926596758818, 'mean_word_length': 7.931914893617021, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1401866', 'n_tokens_mistral': 818, 'n_tokens_neox': 756, 'n_words': 146}