正在显示
1 个修改的文件
包含
76 行增加
和
0 行删除
src/server/spserver/CMakeLists.txt
0 → 100644
1 | + | |
2 | + | |
3 | +option(WITH_LibEvent "Use LibEvent" ON) | |
4 | + | |
5 | + | |
6 | +######################################################## | |
7 | +# Files | |
8 | + | |
9 | +SET(spserver_SOURCES | |
10 | + event_msgqueue.c | |
11 | + spbuffer.cpp | |
12 | + spdispatcher.cpp | |
13 | + speventcb.cpp | |
14 | + spexecutor.cpp | |
15 | + sphandler.cpp | |
16 | + sphttp.cpp | |
17 | + sphttpmsg.cpp | |
18 | + spiochannel.cpp | |
19 | + spioutils.cpp | |
20 | + splfserver.cpp | |
21 | + spmsgblock.cpp | |
22 | + spmsgdecoder.cpp | |
23 | + sprequest.cpp | |
24 | + spresponse.cpp | |
25 | + spserver.cpp | |
26 | + spsession.cpp | |
27 | + spsmtp.cpp | |
28 | + spthreadpool.cpp | |
29 | + sputils.cpp | |
30 | +) | |
31 | +SET(spserver_HEADERS | |
32 | + event_msgqueue.h | |
33 | + spbuffer.hpp | |
34 | + spdispatcher.hpp | |
35 | + speventcb.hpp | |
36 | + spexecutor.hpp | |
37 | + sphandler.hpp | |
38 | + sphttp.hpp | |
39 | + sphttpmsg.hpp | |
40 | + spiochannel.hpp | |
41 | + spioutils.hpp | |
42 | + splfserver.hpp | |
43 | + spmsgblock.hpp | |
44 | + spmsgdecoder.hpp | |
45 | + spporting.hpp | |
46 | + sprequest.hpp | |
47 | + spresponse.hpp | |
48 | + spserver.hpp | |
49 | + spsession.hpp | |
50 | + spsmtp.hpp | |
51 | + spthreadpool.hpp | |
52 | + sputils.hpp | |
53 | +) | |
54 | + | |
55 | +############################################################# | |
56 | + | |
57 | +add_library(spserver SHARED ${spserver_SOURCES} ${spserver_HEADERS}) | |
58 | + | |
59 | +if(WITH_LibEvent) | |
60 | + find_package(LibEvent) | |
61 | + if(LibEvent_FOUND) | |
62 | + include_directories(${LibEvent_INCLUDE_DIR}) | |
63 | + target_link_libraries(spserver ${LIBEVENT_LIB}) | |
64 | + set (USE_LibEvent 1) | |
65 | + else(LibEvent_FOUND) | |
66 | + MESSAGE (SEND_ERROR "LibEvent dependency was not found!") | |
67 | + endif(LibEvent_FOUND) | |
68 | +endif (WITH_LibEvent) | |
69 | + | |
70 | + | |
71 | +INSTALL(TARGETS spserver | |
72 | + RUNTIME DESTINATION ${DMAP_BIN_DIR} | |
73 | + LIBRARY DESTINATION ${DMAP_LIB_DIR} | |
74 | + ARCHIVE DESTINATION ${DMAP_LIB_DIR} | |
75 | + PUBLIC_HEADER DESTINATION ${DMAP_INCLUDE_DIR} | |
76 | +) | |
\ No newline at end of file | ... | ... |
请
注册
或
登录
后发表评论