-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
38 lines (30 loc) · 1.12 KB
/
CMakeLists.txt
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
29
30
31
32
33
34
35
36
37
38
project(historydb)
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
cmake_policy (VERSION 2.6.0)
add_definitions(-std=c++0x -W -Wall)
FILE (READ "${CMAKE_CURRENT_SOURCE_DIR}/debian/changelog" DEBCHANGELOG)
string(REGEX MATCH "([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)" DEBFULLVERSION "${DEBCHANGELOG}")
STRING (REGEX MATCH "([0-9]+\\.[0-9]+)" HISTORYDB_VERSION_ABI "${DEBFULLVERSION}")
STRING (REGEX MATCH "([0-9]+\\.[0-9]+$)" HISTORYDB_VERSION_MINOR "${DEBFULLVERSION}")
INCLUDE(cmake/locate_library.cmake)
LOCATE_LIBRARY(ELLIPTICS_CLIENT "elliptics/interface.h" "elliptics_client")
LOCATE_LIBRARY(ELLIPTICS_CPP "elliptics/cppdef.h" "elliptics_cpp")
LOCATE_LIBRARY(MSGPACK "msgpack/unpack.hpp" "msgpack")
find_package(Boost REQUIRED COMPONENTS system thread)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}/include
${ELLIPTICS_CLIENT_INCLUDE_DIRS}
${MSGPACK_INCLUDE_DIRS}
)
LINK_DIRECTORIES(
${ELLIPTICS_CLIENT_LIBRARY_DIRS}
${MSGPACK_LIBRARY_DIRS}
)
add_subdirectory(src/app)
add_subdirectory(src/lib)
add_subdirectory(src/fastcgi)
add_subdirectory(src/thevoid)
install(FILES
include/historydb/provider.h
DESTINATION include/historydb/
)