blob: a74db1e0834b67320949f897a0aa92698d31ec52 [file] [log] [blame]
Paul Bakkerb06819b2011-01-18 16:18:38 +00001set(libs
Manuel Pégourié-Gonnard216a1832015-06-25 09:20:03 +02002 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
Andrzej Kurek0211c322018-03-15 05:16:24 -040019if(TEST_CPP)
Andrzej Kurek037ec4b2018-06-26 06:57:55 -040020 add_executable(cpp_dummy_build cpp_dummy_build.cpp)
21 target_link_libraries(cpp_dummy_build ${libs})
Andrzej Kurek0211c322018-03-15 05:16:24 -040022endif()
23
Manuel Pégourié-Gonnardcb4137b2014-09-04 14:55:28 +020024add_executable(udp_proxy udp_proxy.c)
25target_link_libraries(udp_proxy ${libs})
26
Andres Amaya Garcia5ab74a12017-10-24 21:10:45 +010027add_executable(zeroize zeroize.c)
28target_link_libraries(zeroize ${libs})
29
David Brownff28df92020-11-04 10:43:58 -070030add_executable(query_compile_time_config query_compile_time_config.c
31 ${CMAKE_CURRENT_SOURCE_DIR}/../ssl/query_config.c)
Andres AGce528862018-10-26 18:41:08 +010032target_link_libraries(query_compile_time_config ${libs})
33
Ron Eldor1ec99c62019-04-07 16:42:25 +030034install(TARGETS selftest benchmark udp_proxy query_compile_time_config
Paul Bakker547f73d2011-01-05 15:07:54 +000035 DESTINATION "bin"
36 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)