-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
127 lines (96 loc) · 3.04 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
cmake_minimum_required(VERSION 2.8.3)
IF(NOT DEFINED ${APPNAME})
SET(APPNAME wscore)
ENDIF(NOT DEFINED ${APPNAME})
SET(CMAKE_INSTALL_PREFIX /usr/local/wscore)
PROJECT(wscore)
# pour support de std::tr1
# http://www.johndcook.com/cpp_regex.html
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=gnu++11")
#set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=gnu++11")
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} )
ADD_DEFINITIONS(-DHAS_DAEMON)
SET (APPNAME_SRCS
src/FileSystemTree/WsAbstractNode.cpp
src/FileSystemTree/WsDirNode.cpp
src/FileSystemTree/WsDirNode.h
src/FileSystemTree/WsFileNode.cpp
src/FileSystemTree/WsFileNode.h
src/FileSystemTree/WsNode.cpp
src/FileSystemTree/WsNode.h
src/FileSystemTree/WsFileSystemTree.cpp
src/FileSystemTree/WsFileSystemTree.h
src/DirCrawler/WsDirectoryCrawler.cpp
src/DirCrawler/WsDirectoryCrawler.h
src/ConfigManager/WsNodeProperties.cpp
src/ConfigManager/WsNodeResources.cpp
src/ConfigManager/WsAbstractProperties.cpp
src/ConfigManager/WsGlobalProperties.cpp
src/ConfigManager/WsLayoutProperties.cpp
src/FsClient/WsFsTreeClient.cpp
src/FsClient/WsFsDaemonClient.cpp
src/FsClient/WsAbstractFsClient.cpp
src/FsTreeOp/WsFsTreeOperations.cpp
src/FsTreeOp/WsFsTreeConsultation.cpp
src/FsTreeOp/WsFsTreeModification.cpp
src/Tree/WsAccessTree.cpp
src/Tree/WsAbstractTree.cpp
src/Serializer/WsTreeSerializer.cpp
src/Serializer/WsArraySerializer.cpp
src/Serializer/WsTreeDeserializer.cpp
src/Serializer/WsArrayDeserializer.cpp
src/Updater/WsFsTreeUpdater.cpp
src/Updater/WsAbstractMonitor.cpp
src/Updater/WsMonitor.cpp
src/TreeTraversal/WsTreeTraversal.cpp
src/User/WsUser.cpp
src/Auth/WsAbstractAuth.cpp
src/Auth/WsAuthenticator.cpp
src/Logger/WsLogger.cpp
src/Logger/WsLogWriter.cpp
src/Logger/WsCrashLogger.cpp
src/Search/WsSearch.cpp
src/Search/WsResultItem.cpp
src/Search/WsAbstractSearch.cpp
src/Compression/WsCompressor.cpp
src/Compression/WsDecompressor.cpp
src/Utils/WsUtils.cpp
)
INCLUDE(./cmake/FindJsoncpp.cmake)
INCLUDE(./cmake/FindZmq.cmake)
INCLUDE(./cmake/FindFam.cmake)
INCLUDE(./cmake/FindZlib.cmake)
IF(NOT JSONCPP_FOUND)
MESSAGE(FATAL_ERROR "** these program needs jsoncpp libraries... Abord.")
ENDIF(NOT JSONCPP_FOUND)
IF(NOT ZMQ_FOUND)
MESSAGE(FATAL_ERROR "** these program needs zmq libraries... Abord.")
ENDIF(NOT ZMQ_FOUND)
IF(NOT FAM_FOUND)
MESSAGE(FATAL_ERROR "** these program needs fam libraries... Abord.")
ENDIF(NOT FAM_FOUND)
IF(NOT ZLIB_FOUND)
MESSAGE(FATAL_ERROR "** these program needs zlib libraries... Abord.")
ENDIF(NOT ZLIB_FOUND)
INCLUDE_DIRECTORIES(
${JSONCPP_INCLUDE_DIR}
${ZMQ_INCLUDE_DIR}
${FAM_INCLUDE_DIR}
${ZLIB_INCLUDE_DIR}
src
)
SET ( APP_LIBRARIES
dl
${JSONCPP_LIBRARIES}
${ZMQ_LIBRARY}
${FAM_LIBRARY}
${ZLIB_LIBRARY}
)
SET ( APP_LIBRARIES
${APP_LIBRARIES}
)
SUBDIRS (
src/WsSearchModules
src/WsAuthModules
)
INCLUDE(./cmake/install_libs.cmake)