-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathConfigureChecks.cmake
107 lines (92 loc) · 2.66 KB
/
ConfigureChecks.cmake
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
##################################################
# Load Modules
#####
INCLUDE(CheckIncludeFile)
INCLUDE(CheckIncludeFileCXX)
##################################################
# Int Types
#####
CHECK_INCLUDE_FILE(inttypes.h HAVE_INTTYPES_H)
CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H)
CHECK_INCLUDE_FILE(sys/types.h HAVE_SYS_TYPES_H)
CHECK_INCLUDE_FILE(sys/stat.h HAVE_SYS_STAT_H)
CHECK_INCLUDE_FILE(sys/timerfd.h HAVE_SYS_TIMERFD_H)
CHECK_INCLUDE_FILE(sys/signalfd.h HAVE_SYS_SIGNALFD_H)
CHECK_INCLUDE_FILE(sys/socket.h HAVE_SYS_SOCKET_H)
CHECK_INCLUDE_FILE(sys/time.h HAVE_SYS_TIME_H)
CHECK_INCLUDE_FILE(sys/types.h HAVE_SYS_TYPES_H)
CHECK_INCLUDE_FILE(sys/utsname.h HAVE_SYS_UTSNAME_H)
CHECK_INCLUDE_FILE(arpa/inet.h HAVE_ARPA_INET_H)
CHECK_INCLUDE_FILE(dlfcn.h HAVE_DLFCN_H)
CHECK_INCLUDE_FILE(fcntl.h HAVE_FCNTL_H)
CHECK_INCLUDE_FILE(memory.h HAVE_MEMORY_H)
CHECK_INCLUDE_FILE(netdb.h HAVE_NETDB_H)
CHECK_INCLUDE_FILE(netdb/in.h HAVE_NETINET_IN_H)
CHECK_INCLUDE_FILE(stdlib.h HAVE_STDLIB_H)
CHECK_INCLUDE_FILE(strings.h HAVE_STRINGS_H)
CHECK_INCLUDE_FILE(string.h HAVE_STRING_H)
CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
CHECK_INCLUDE_FILE(stddef.h HAVE_STDDEF_H)
CHECK_INCLUDE_FILE_CXX(ext/hash_fun.h HAVE_EXT_HASH_FUN_H)
CHECK_INCLUDE_FILE_CXX(backward/hash_fun.h HAVE_BACKWARD_HASH_FUN_H)
##################################################
# Doxygen
#####
FIND_PACKAGE(Doxygen)
IF(DOXYGEN_DOT_EXECUTABLE)
OPTION(USE_DOT "use dot in doxygen?" FLASE)
ENDIF(DOXYGEN_DOT_EXECUTABLE)
SET(USE_DOT_YESNO NO)
IF(USE_DOT)
SET(USE_DOT_YESNO YES)
ENDIF(USE_DOT)
##################################################
# Boost
#####
# Only required header only library
# set BOOST_ROOT to select a boost installation
# This is required to enable the new version
SET(Boost_ADDITIONAL_VERSIONS 1.47 1.47.0)
FIND_PACKAGE(Boost 1.47 REQUIRED
COMPONENTS
system
program_options
thread
regex
date_time
serialization
filesystem
unit_test_framework
iostreams
)
##################################################
# Threads
#####
FIND_PACKAGE(Threads)
##################################################
# bzip2 & zlib
#####
FIND_PACKAGE(BZip2)
FIND_PACKAGE(ZLIB)
##################################################
# Tokoyo Cabnet
#####
FIND_PACKAGE(TokyoCabinet 1.4.24)
##################################################
# Glog
#####
FIND_PACKAGE(Glog)
##################################################
# Thrift
#####
FIND_PACKAGE(Thrift)
##################################################
# Tokudb
#####
FIND_PACKAGE(Toku)
##################################################
# Other common libraries
#####
FIND_PACKAGE(OpenSSL)
FIND_LIBRARY(DL_LIBRARIES NAMES dl)
FIND_LIBRARY(M_LIBRARIES NAMES m)