2018-09-07 17:42:57 +08:00
|
|
|
add_executable(tfe src/key_keeper.cpp src/kni_acceptor.cpp src/ssl_stream.cpp src/ssl_sess_cache.cpp src/ssl_utils.cc src/tcp_stream.cpp src/main.cpp src/proxy.cpp)
|
2018-08-27 21:10:45 +08:00
|
|
|
|
2018-08-21 16:11:50 +08:00
|
|
|
target_include_directories(tfe PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include/external)
|
|
|
|
|
target_include_directories(tfe PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/internal)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(tfe common)
|
2018-08-31 19:59:22 +08:00
|
|
|
target_link_libraries(tfe pthread dl
|
|
|
|
|
openssl-ssl-static
|
|
|
|
|
openssl-crypto-static
|
|
|
|
|
pthread libevent-static
|
|
|
|
|
libevent-static-openssl
|
|
|
|
|
libevent-static-pthreads
|
|
|
|
|
MESA_handle_logger
|
|
|
|
|
MESA_prof_load
|
2018-09-07 17:42:57 +08:00
|
|
|
cjson
|
2018-08-31 19:59:22 +08:00
|
|
|
MESA_htable wiredcfg
|
2018-09-02 16:34:15 +08:00
|
|
|
MESA_field_stat)
|
2018-08-30 15:53:41 +08:00
|
|
|
|
2018-09-07 17:27:23 +08:00
|
|
|
target_link_libraries(tfe -Wl,--whole-archive http -Wl,--no-whole-archive)
|
2018-09-12 15:29:35 +08:00
|
|
|
#target_link_libraries(tfe -Wl,--whole-archive decrypt-mirroring -Wl,--no-whole-archive)
|
2018-09-07 17:27:23 +08:00
|
|
|
|
2018-08-30 15:53:41 +08:00
|
|
|
install(TARGETS tfe RUNTIME DESTINATION ./)
|
2018-09-04 15:47:41 +08:00
|
|
|
|
|
|
|
|
### test_key_keeper
|
2018-09-07 17:42:57 +08:00
|
|
|
add_executable(test_key_keeper test/test_key_keeper.cpp src/key_keeper.cpp src/ssl_sess_cache.cpp src/ssl_utils.cc )
|
2018-09-04 15:47:41 +08:00
|
|
|
|
|
|
|
|
target_include_directories(test_key_keeper PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/internal)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(test_key_keeper common)
|
|
|
|
|
target_link_libraries(test_key_keeper pthread dl
|
|
|
|
|
openssl-ssl-static
|
|
|
|
|
openssl-crypto-static
|
|
|
|
|
pthread libevent-static
|
|
|
|
|
libevent-static-openssl
|
|
|
|
|
libevent-static-pthreads
|
|
|
|
|
MESA_handle_logger
|
|
|
|
|
MESA_prof_load
|
2018-09-07 17:42:57 +08:00
|
|
|
cjson
|
2018-09-04 15:47:41 +08:00
|
|
|
MESA_htable wiredcfg
|
|
|
|
|
MESA_field_stat)
|
|
|
|
|
|
|
|
|
|
install(TARGETS test_key_keeper RUNTIME DESTINATION ./)
|
|
|
|
|
|
|
|
|
|
### test_tfe_rpc
|
2018-09-07 17:42:57 +08:00
|
|
|
add_executable(test_tfe_rpc test/test_tfe_rpc.cpp src/key_keeper.cpp src/ssl_sess_cache.cpp src/ssl_utils.cc)
|
2018-09-04 15:47:41 +08:00
|
|
|
|
|
|
|
|
target_include_directories(test_tfe_rpc PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/internal)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(test_tfe_rpc common)
|
|
|
|
|
target_link_libraries(test_tfe_rpc pthread dl
|
|
|
|
|
openssl-ssl-static
|
|
|
|
|
openssl-crypto-static
|
|
|
|
|
pthread libevent-static
|
|
|
|
|
libevent-static-openssl
|
|
|
|
|
libevent-static-pthreads
|
|
|
|
|
MESA_handle_logger
|
|
|
|
|
MESA_prof_load
|
|
|
|
|
MESA_htable wiredcfg
|
2018-09-07 17:42:57 +08:00
|
|
|
cjson
|
2018-09-04 15:47:41 +08:00
|
|
|
MESA_field_stat)
|
|
|
|
|
|
|
|
|
|
install(TARGETS test_tfe_rpc RUNTIME DESTINATION ./)
|
2018-09-13 20:10:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
### test_chello_parse
|
|
|
|
|
add_executable(test_chello_parse test/test_chello_parse.cpp src/ssl_utils.cc)
|
|
|
|
|
|
|
|
|
|
target_include_directories(test_chello_parse PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/internal)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(test_chello_parse common)
|
|
|
|
|
target_link_libraries(test_chello_parse pthread dl
|
|
|
|
|
openssl-ssl-static
|
|
|
|
|
openssl-crypto-static
|
|
|
|
|
pthread libevent-static
|
|
|
|
|
libevent-static-openssl
|
|
|
|
|
libevent-static-pthreads
|
|
|
|
|
MESA_handle_logger
|
|
|
|
|
MESA_prof_load
|
|
|
|
|
MESA_htable wiredcfg
|
|
|
|
|
cjson
|
|
|
|
|
MESA_field_stat)
|
|
|
|
|
|
|
|
|
|
install(TARGETS test_chello_parse RUNTIME DESTINATION ./)
|