-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
80 lines (62 loc) · 1.77 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
project(PCacheProxy)
cmake_minimum_required(VERSION 2.8)
find_package (Threads)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
FIND_PACKAGE(Poco REQUIRED Zip Net Util Foundation)
#IF(Poco_FOUND)
INCLUDE_DIRECTORIES(${Poco_INCLUDE_DIRS})
LINK_DIRECTORIES(${Poco_LIBRARY_DIR})
add_definitions(-DPOCO_STATIC -DPOCO_NO_AUTOMATIC_LIBS)
#ENDIF(Poco_FOUND)
SET( TARGET_BASE_NAME pcacheproxy )
IF(ANDROID)
add_definitions(-DPOCO_ANDROID)
ENDIF()
#-----------------------------------------------------------------------------
SET( EXE_NAME "${TARGET_BASE_NAME}" )
include_directories(.)
# Add any source files here.
SET( EXE_SRCS
PCacheProxy/Service.cpp
PCacheProxy/Exception.cpp
PCacheProxy/ServiceServerRequest.cpp
PCacheProxy/ServiceServerParamRequest.cpp
PCacheProxy/Util.cpp
PCacheProxy/Rfc2616CacheValidator.cpp
PCacheProxy/MemoryCache.cpp
PCacheProxy/MemoryCacheInfo.cpp
)
# Add any include files here.
SET( EXE_INCS
PCacheProxy/Service.h
PCacheProxy/Cache.h
PCacheProxy/CacheGet.h
PCacheProxy/CacheStore.h
PCacheProxy/CacheValidator.h
PCacheProxy/Rfc2616CacheValidator.h
PCacheProxy/Exception.h
PCacheProxy/Request.h
PCacheProxy/Response.h
PCacheProxy/ServiceServerRequest.h
PCacheProxy/ServiceServerParamRequest.h
PCacheProxy/Util.h
PCacheProxy/RequestStream.h
PCacheProxy/ResponseStream.h
PCacheProxy/RequestServer.h
PCacheProxy/ResponseServer.h
PCacheProxy/MemoryCache.h
PCacheProxy/MemoryCacheInfo.h
)
#-----------------------------------------------------------------------------
SET(BASE_SRCS
pcacheproxy.cpp
)
SET(BASE_INCS
)
# The executable.
ADD_EXECUTABLE(${EXE_NAME} ${BASE_SRCS} ${BASE_INCS} ${EXE_SRCS} ${EXE_INCS})
TARGET_LINK_LIBRARIES ( ${EXE_NAME}
${Poco_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${CMAKE_DL_LIBS}
)