-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
53 lines (45 loc) · 1.05 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
cmake_minimum_required(VERSION 2.8.11)
project(henhouse)
add_definitions(-std=c++17)
add_definitions(-fPIC)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
include_directories(.)
include_directories(..)
if(NOT DEFINED PROXYGEN_DIR)
message(FATAL_ERROR "PROXYGEN_DIR must point to the proxygen root directory")
endif()
#setup boost
set(Boost_USE_STATIC_LIBS on)
set(Boost_USE_MULTITHREADED ON)
unset(Boost_INCLUDE_DIR CACHE)
unset(Boost_LIBRARY_DIRS CACHE)
find_package(Boost COMPONENTS system program_options filesystem regex iostreams thread serialization context REQUIRED)
link_directories(
${PROXYGEN_DIR}/proxygen/_build/lib
${Boost_LIBRARY_DIRS})
include_directories(
${PROXYGEN_DIR}/proxygen/_build/include
${Boost_INCLUDE_DIRS})
set(MISC_LIBRARIES
librt.so
proxygenhttpserver
proxygen
libz.a
wangle
fizz
folly
fmt
snappy
sodium
iberty
lz4
libevent.a
libpthread.so
libboost_context.a
dl
ssl
crypto
glog
gflags
double-conversion)
add_subdirectory(src)