summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 8da14e2b5d318d8403d9cfbdbcdb00d4421ccca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 2.6)
project(MAD)

set(CMAKE_MODULE_PATH ${MAD_SOURCE_DIR})

find_package(LibXml2 REQUIRED)
find_package(DL REQUIRED)
find_package(Readline REQUIRED)
#find_package(KRB5 REQUIRED gssapi)
find_package(OpenSSL REQUIRED)
find_package(Boost REQUIRED date_time filesystem regex signals system thread)
find_package(MySQL)

configure_file(${MAD_SOURCE_DIR}/config.h.in ${MAD_BINARY_DIR}/config.h)

set(INCLUDES 
  ${MAD_SOURCE_DIR}/src
  ${MAD_BINARY_DIR}
  ${LIBXML2_INCLUDE_DIR}
  ${GNUTLS_INCLUDE_DIRS}
  ${DL_INCLUDE_DIR}
  ${READLINE_INCLUDE_DIR}
#  ${KRB5_INCLUDE_DIRS}
  ${OPENSSL_INCLUDE_DIR}
  ${Boost_INCLUDE_DIR}
)

add_subdirectory(src)