1set(libs
2    mbedtls
3)
4
5if(USE_PKCS11_HELPER_LIBRARY)
6    set(libs ${libs} pkcs11-helper)
7endif(USE_PKCS11_HELPER_LIBRARY)
8
9if(ENABLE_ZLIB_SUPPORT)
10    set(libs ${libs} ${ZLIB_LIBRARIES})
11endif(ENABLE_ZLIB_SUPPORT)
12
13add_executable(selftest selftest.c)
14target_link_libraries(selftest ${libs})
15
16add_executable(benchmark benchmark.c)
17target_link_libraries(benchmark ${libs})
18
19add_executable(ssl_cert_test ssl_cert_test.c)
20target_link_libraries(ssl_cert_test ${libs})
21
22add_executable(udp_proxy udp_proxy.c)
23target_link_libraries(udp_proxy ${libs})
24
25install(TARGETS selftest benchmark ssl_cert_test udp_proxy
26        DESTINATION "bin"
27        PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
28