summaryrefslogtreecommitdiff
path: root/program/CMakeLists.txt
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2019-11-05 11:38:40 +0800
committerfengweihao <[email protected]>2019-11-05 11:38:40 +0800
commit7192f437e55c9141d8cc72858295d4c5c6556616 (patch)
tree95dbf9e93da30601c34af4279ac9380251ae3d86 /program/CMakeLists.txt
parent8b089533e9c75bc6a99917cce71bc3839dd0ab44 (diff)
* 修改编译方式为CMakev2.1.2-20191105
* 删除C++适配代码 * 修改编译告警
Diffstat (limited to 'program/CMakeLists.txt')
-rw-r--r--program/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/program/CMakeLists.txt b/program/CMakeLists.txt
new file mode 100644
index 0000000..c9fbd9a
--- /dev/null
+++ b/program/CMakeLists.txt
@@ -0,0 +1,22 @@
+if(COMMAND cmake_policy)
+ cmake_policy(SET CMP0003 NEW)
+endif(COMMAND cmake_policy)
+
+add_executable(certstore src/cert_store.cpp src/cert_conf.cpp src/cert_session.cpp)
+
+target_include_directories(certstore PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include)
+target_include_directories(certstore PRIVATE ${SYSTEMD_INCLUDE_DIRS})
+
+target_link_libraries(certstore dl common
+ maatframe
+ openssl-ssl-static
+ openssl-crypto-static
+ pthread
+ uuid
+ libevent-static
+ MESA_htable
+ MESA_prof_load
+ MESA_handle_logger
+ hiredis-static
+ MESA_field_stat
+ ${SYSTEMD_LIBRARIES})