正在显示
1 个修改的文件
包含
33 行增加
和
0 行删除
apache/CMakeLists.txt
0 → 100644
1 | + | |
2 | + | |
3 | +option(WITH_APACHE "Build Apache Module" ON) | |
4 | + | |
5 | +if(WITH_APACHE) | |
6 | + add_library(mod_dmapserver MODULE mod_dmapserver.c) | |
7 | + set_target_properties(mod_dmapserver PROPERTIES PREFIX "") | |
8 | + | |
9 | + find_package(APACHE) | |
10 | + if(APACHE_FOUND) | |
11 | + include_directories(${APACHE_INCLUDE_DIR}) | |
12 | + target_link_libraries(mod_dmapserver ${APACHE_LIBRARY}) | |
13 | + else(APACHE_FOUND) | |
14 | + MESSAGE (SEND_ERROR "APACHE dependency was not found!") | |
15 | + endif(APACHE_FOUND) | |
16 | + | |
17 | + find_package(APR) | |
18 | + if(APR_FOUND) | |
19 | + include_directories(${APR_INCLUDE_DIR} ${APU_INCLUDE_DIR}) | |
20 | + target_link_libraries(mod_dmapserver ${APR_LIBRARY} ${APU_LIBRARY}) | |
21 | + if(DEFINED APR_CPPFLAGS) | |
22 | + add_definitions("${APR_CPPFLAGS}") | |
23 | + endif(DEFINED APR_CPPFLAGS) | |
24 | + else(APR_FOUND) | |
25 | + MESSAGE (SEND_ERROR "APR dependency was not found!") | |
26 | + endif(APR_FOUND) | |
27 | + | |
28 | + if(APACHE_MODULE_DIR) | |
29 | + INSTALL(TARGETS mod_dmapserver DESTINATION ${APACHE_MODULE_DIR}) | |
30 | + endif(APACHE_MODULE_DIR) | |
31 | +else(WITH_APACHE) | |
32 | + message(STATUS " * Apache Module support status: DISABLED") | |
33 | +endif(WITH_APACHE) | |
\ No newline at end of file | ... | ... |
请
注册
或
登录
后发表评论