<commit_before># $Id: CMakeLists.txt 270 2006-10-01 18:33:49Z nemerle $

SET(UNICODE )

IF(CMAKE_CXX_COMPILER MATCHES cl)
     IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005")
       SET(CMAKE_CXX_FLAGS_DEBUG " /D \"_CRT_SECURE_NO_WARNINGS\" ${CMAKE_CXX_FLAGS_DEBUG}"  )
       SET(CMAKE_CXX_FLAGS_RELEASE " /D \"_CRT_SECURE_NO_WARNINGS\" ${CMAKE_CXX_FLAGS_RELEASE}")
     ENDIF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005")
ENDIF (CMAKE_CXX_COMPILER MATCHES cl)

# just testing 
OPTION(BUILD_SEPARATE "When set to 1 this will build each server as a separate executable file" ON)

# ACE framework
FIND_PATH(ACE_path ACE.h
  /usr/local/include/ace
  /usr/include/ace
)
FIND_LIBRARY(ACE_lib NAMES libACE.so ACE ACEd.lib libACE.a PATHS /usr/lib /usr/local/lib DOC "Path to ACE framework library"])

# BOOST
FIND_PATH(BOOST_path object_pool.hpp
   /usr/local/include/boost
   /usr/include/boost/
   /include/boost
)
# PostgreSQL
FIND_PATH(PGSQL_path libpq-fe.h
   /usr/local/include/postgresql
   /usr/include/postgresql
   /usr/include/pgsql
)
FIND_LIBRARY(PGSQL_lib NAMES libpq.so libpq.a libpq pq PATHS /usr/lib /usr/local/lib DOC "Path to PostgreSQL library"])

# zlib 

FIND_PACKAGE(ZLIB REQUIRED)
FIND_PACKAGE(Threads REQUIRED)
FIND_PACKAGE(SWIG)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/Common/include)
INCLUDE_DIRECTORIES(../common/include)
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${ACE_path})
INCLUDE_DIRECTORIES(${PGSQL_path})
INCLUDE_DIRECTORIES(${BOOST_path})


ADD_SUBDIRECTORY(Common)
ADD_SUBDIRECTORY(AdminServer)<commit_msg>Added 3 more include paths to silence compilation errors for missing headers<commit_after># $Id: CMakeLists.txt 270 2006-10-01 18:33:49Z nemerle $

SET(UNICODE )

IF(CMAKE_CXX_COMPILER MATCHES cl)
     IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005")
       SET(CMAKE_CXX_FLAGS_DEBUG " /D \"_CRT_SECURE_NO_WARNINGS\" ${CMAKE_CXX_FLAGS_DEBUG}"  )
       SET(CMAKE_CXX_FLAGS_RELEASE " /D \"_CRT_SECURE_NO_WARNINGS\" ${CMAKE_CXX_FLAGS_RELEASE}")
     ENDIF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005")
ENDIF (CMAKE_CXX_COMPILER MATCHES cl)

# just testing 
OPTION(BUILD_SEPARATE "When set to 1 this will build each server as a separate executable file" ON)

# ACE framework
FIND_PATH(ACE_path ACE.h
  /usr/local/include/ace
  /usr/include/ace
)
FIND_LIBRARY(ACE_lib NAMES libACE.so ACE ACEd.lib libACE.a PATHS /usr/lib /usr/local/lib DOC "Path to ACE framework library"])

# BOOST
FIND_PATH(BOOST_path object_pool.hpp
   /usr/local/include/boost
   /usr/include/boost/
   /include/boost
)
# PostgreSQL
FIND_PATH(PGSQL_path libpq-fe.h
   /usr/local/include/postgresql
   /usr/include/postgresql
   /usr/include/pgsql
)
FIND_LIBRARY(PGSQL_lib NAMES libpq.so libpq.a libpq pq PATHS /usr/lib /usr/local/lib DOC "Path to PostgreSQL library"])

# zlib 

FIND_PACKAGE(ZLIB REQUIRED)
FIND_PACKAGE(Threads REQUIRED)
FIND_PACKAGE(SWIG)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/Common/include)
INCLUDE_DIRECTORIES(../common/include)
INCLUDE_DIRECTORIES(../Components/Common/GrowingBuffer/include)
INCLUDE_DIRECTORIES(../Components/Common/CRUDP_Protocol/include)
INCLUDE_DIRECTORIES(../Components/Common/Bitstream/include)
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${ACE_path})
INCLUDE_DIRECTORIES(${PGSQL_path})
INCLUDE_DIRECTORIES(${BOOST_path})


ADD_SUBDIRECTORY(Common)
ADD_SUBDIRECTORY(AdminServer)
{'fraction_non_alphanumeric': 0.1036655211912944, 'fraction_numerical': 0.01632302405498282, 'mean_word_length': 5.6280834914611, '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': '881540', 'n_tokens_mistral': 1491, 'n_tokens_neox': 1309, 'n_words': 243}