<commit_before>project(NAViTiACpp)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")

IF(NOT CMAKE_BUILD_TYPE)
   SET(CMAKE_BUILD_TYPE Debug)
ENDIF(NOT CMAKE_BUILD_TYPE)

IF(WIN32)
  ADD_DEFINITIONS(-D_WIN32_WINNT=0x0501)
  IF(MSVC)
	IF(CMAKE_CL_64)
		SET(LIB_PREFIX "C:/lib64/")
	ELSE(CMAKE_CL_64)
		SET(LIB_PREFIX "C:/lib32/")
	ENDIF(CMAKE_CL_64)
	SET(BOOST_ROOT "${LIB_PREFIX}boost/")
	
	# Sur un système ayant les 2 versions 32 et 64 bits on considère que Qt est installé à un endroit précis
	FIND_PROGRAM(QMAKE "${LIB_PREFIX}qt-4.7/bin/qmake.exe")
	IF(QMAKE)
		SET(QT_QMAKE_EXECUTABLE "${LIB_PREFIX}qt-4.7/bin/qmake.exe")
	ENDIF(QMAKE)
  ELSEIF(MINGW)
    SET (BOOST_INCLUDEDIR "c:/mingw/include")
  ENDIF(MSVC)  
ENDIF(WIN32)

IF(CMAKE_COMPILER_IS_GNUCXX)
    SET(CMAKE_CXX_FLAGS "-Wall -pedantic -Wextra -std=c++0x -Woverloaded-virtual -Wundef ")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
    SET(CMAKE_CXX_FLAGS "-std=gnu++0x -stdlib=libc++  -ferror-limit=10 -I/usr/local/include/c++/v1 -pthread")
    SET(CMAKE_C_FLAGS "-stdlib=libc++  -ferror-limit=10 -I/usr/local/include/c++/v1 -pthread")
endif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")


#gestion des fixtures pour les test unitaire
SET(FIXTURES_DIR ${CMAKE_SOURCE_DIR}/../fixtures/)


INCLUDE (CheckIncludeFiles)
CHECK_INCLUDE_FILES(iconv.h HAVE_ICONV_H)
FIND_PACKAGE(Boost 1.40.0 REQUIRED)



#ajout a l'include path le repertoirre de compilation, pour géré le config.h
include_directories (${CMAKE_CURRENT_BINARY_DIR}
                     ${CMAKE_SOURCE_DIR}
                     ${CMAKE_SOURCE_DIR}/../
                     ${Boost_INCLUDE_DIRS}
)
link_directories ( ${Boost_LIBRARY_DIRS} )


ENABLE_TESTING()

add_subdirectory(WS_commons)
add_subdirectory(type)
add_subdirectory(ptreferential)
add_subdirectory(first_letter)
add_subdirectory(log)
add_subdirectory(naviMake)
add_subdirectory(fastlz_filter)
add_subdirectory(fare)
add_subdirectory(gateway_mod)
add_subdirectory(visu)
add_subdirectory(street_network)
add_subdirectory(proximity_list)
add_subdirectory(navitia)

#on génére le fichier config.h
configure_file(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)<commit_msg>Rajout network au projet global<commit_after>project(NAViTiACpp)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")

IF(NOT CMAKE_BUILD_TYPE)
   SET(CMAKE_BUILD_TYPE Debug)
ENDIF(NOT CMAKE_BUILD_TYPE)

IF(WIN32)
  ADD_DEFINITIONS(-D_WIN32_WINNT=0x0501)
  IF(MSVC)
	IF(CMAKE_CL_64)
		SET(LIB_PREFIX "C:/lib64/")
	ELSE(CMAKE_CL_64)
		SET(LIB_PREFIX "C:/lib32/")
	ENDIF(CMAKE_CL_64)
	SET(BOOST_ROOT "${LIB_PREFIX}boost/")
	
	# Sur un système ayant les 2 versions 32 et 64 bits on considère que Qt est installé à un endroit précis
	FIND_PROGRAM(QMAKE "${LIB_PREFIX}qt-4.7/bin/qmake.exe")
	IF(QMAKE)
		SET(QT_QMAKE_EXECUTABLE "${LIB_PREFIX}qt-4.7/bin/qmake.exe")
	ENDIF(QMAKE)
  ELSEIF(MINGW)
    SET (BOOST_INCLUDEDIR "c:/mingw/include")
  ENDIF(MSVC)  
ENDIF(WIN32)

IF(CMAKE_COMPILER_IS_GNUCXX)
    SET(CMAKE_CXX_FLAGS "-Wall -pedantic -Wextra -std=c++0x -Woverloaded-virtual -Wundef ")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
    SET(CMAKE_CXX_FLAGS "-std=gnu++0x -stdlib=libc++  -ferror-limit=10 -I/usr/local/include/c++/v1 -pthread")
    SET(CMAKE_C_FLAGS "-stdlib=libc++  -ferror-limit=10 -I/usr/local/include/c++/v1 -pthread")
endif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")


#gestion des fixtures pour les test unitaire
SET(FIXTURES_DIR ${CMAKE_SOURCE_DIR}/../fixtures/)


INCLUDE (CheckIncludeFiles)
CHECK_INCLUDE_FILES(iconv.h HAVE_ICONV_H)
FIND_PACKAGE(Boost 1.40.0 REQUIRED)



#ajout a l'include path le repertoirre de compilation, pour géré le config.h
include_directories (${CMAKE_CURRENT_BINARY_DIR}
                     ${CMAKE_SOURCE_DIR}
                     ${CMAKE_SOURCE_DIR}/../
                     ${Boost_INCLUDE_DIRS}
)
link_directories ( ${Boost_LIBRARY_DIRS} )


ENABLE_TESTING()

add_subdirectory(WS_commons)
add_subdirectory(type)
add_subdirectory(ptreferential)
add_subdirectory(first_letter)
add_subdirectory(log)
add_subdirectory(naviMake)
add_subdirectory(fastlz_filter)
add_subdirectory(fare)
add_subdirectory(gateway_mod)
add_subdirectory(visu)
add_subdirectory(street_network)
add_subdirectory(proximity_list)
add_subdirectory(network)
add_subdirectory(navitia)

#on génére le fichier config.h
configure_file(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
{'fraction_non_alphanumeric': 0.11971830985915492, 'fraction_numerical': 0.01936619718309859, 'mean_word_length': 5.743323442136498, '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': '6162165', 'n_tokens_mistral': 2023, 'n_tokens_neox': 1816, 'n_words': 280}