forked from iderikon/elliptics-fastcgi
-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
44 lines (34 loc) · 897 Bytes
/
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
39
40
41
42
43
cmake_minimum_required(VERSION 2.6)
set(TARGET elliptics-fastcgi)
project(${TARGET})
file(READ "${PROJECT_SOURCE_DIR}/debian/changelog" DEBCHANGELOG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -Wall -pedantic -std=c++0x -g")
include_directories(BEFORE ${PROJECT_SOURCE_DIR}/include)
set(SOURCES
${PROJECT_SOURCE_DIR}/src/proxy.cpp
${PROJECT_SOURCE_DIR}/src/ranges.cpp
${PROJECT_SOURCE_DIR}/src/data_container.cpp
${PROJECT_SOURCE_DIR}/src/lookup_result.cpp
)
add_library(${TARGET} SHARED ${SOURCES})
target_link_libraries(
${TARGET}
fastcgi-daemon2
elliptics_cpp
magic
crypto++
)
set_target_properties(
${TARGET} PROPERTIES
PREFIX ""
INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib/fastcgi2"
)
install(
TARGETS
${TARGET}
LIBRARY DESTINATION lib/fastcgi2 COMPONENT runtime)
install(
DIRECTORY
include/
DESTINATION include
COMPONENT development)