blob: d0116c5f3aef1d9b32f45e39bdb135c587efe1f8 [file] [log] [blame]
Paul Bakkerb06819b2011-01-18 16:18:38 +00001set(libs
Manuel Pégourié-Gonnard9014b6f2015-01-27 15:44:46 +00002 mbedtls
Paul Bakkerb06819b2011-01-18 16:18:38 +00003)
4
5if(USE_PKCS11_HELPER_LIBRARY)
6 set(libs ${libs} pkcs11-helper)
7endif(USE_PKCS11_HELPER_LIBRARY)
8
Paul Bakker92eeea42012-07-03 15:10:33 +00009if(ENABLE_ZLIB_SUPPORT)
10 set(libs ${libs} ${ZLIB_LIBRARIES})
11endif(ENABLE_ZLIB_SUPPORT)
12
Paul Bakker367dae42009-06-28 21:50:27 +000013add_executable(selftest selftest.c)
Paul Bakkerb06819b2011-01-18 16:18:38 +000014target_link_libraries(selftest ${libs})
Paul Bakker367dae42009-06-28 21:50:27 +000015
16add_executable(benchmark benchmark.c)
Paul Bakkerb06819b2011-01-18 16:18:38 +000017target_link_libraries(benchmark ${libs})
Paul Bakker367dae42009-06-28 21:50:27 +000018
Paul Bakker367dae42009-06-28 21:50:27 +000019add_executable(ssl_cert_test ssl_cert_test.c)
Paul Bakkerb06819b2011-01-18 16:18:38 +000020target_link_libraries(ssl_cert_test ${libs})
Paul Bakker367dae42009-06-28 21:50:27 +000021
Manuel Pégourié-Gonnardcb4137b2014-09-04 14:55:28 +020022add_executable(udp_proxy udp_proxy.c)
23target_link_libraries(udp_proxy ${libs})
24
Manuel Pégourié-Gonnard34be4022015-03-06 14:49:37 +000025install(TARGETS selftest benchmark ssl_cert_test udp_proxy
Paul Bakker547f73d2011-01-05 15:07:54 +000026 DESTINATION "bin"
27 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)