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
19if(TEST_CPP)
20    add_executable(cpp_dummy_build cpp_dummy_build.cpp)
21    target_link_libraries(cpp_dummy_build ${libs})
22endif()
23
24add_executable(ssl_cert_test ssl_cert_test.c)
25target_link_libraries(ssl_cert_test ${libs})
26
27add_executable(udp_proxy udp_proxy.c)
28target_link_libraries(udp_proxy ${libs})
29
30add_executable(zeroize zeroize.c)
31target_link_libraries(zeroize ${libs})
32
33install(TARGETS selftest benchmark ssl_cert_test udp_proxy
34        DESTINATION "bin"
35        PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
36