| Paul Bakker | b06819b | 2011-01-18 16:18:38 +0000 | [diff] [blame] | 1 | set(libs | 
| Manuel Pégourié-Gonnard | 216a183 | 2015-06-25 09:20:03 +0200 | [diff] [blame] | 2 | mbedtls | 
| Paul Bakker | b06819b | 2011-01-18 16:18:38 +0000 | [diff] [blame] | 3 | ) | 
|  | 4 |  | 
|  | 5 | if(USE_PKCS11_HELPER_LIBRARY) | 
|  | 6 | set(libs ${libs} pkcs11-helper) | 
|  | 7 | endif(USE_PKCS11_HELPER_LIBRARY) | 
|  | 8 |  | 
| Paul Bakker | 92eeea4 | 2012-07-03 15:10:33 +0000 | [diff] [blame] | 9 | if(ENABLE_ZLIB_SUPPORT) | 
|  | 10 | set(libs ${libs} ${ZLIB_LIBRARIES}) | 
|  | 11 | endif(ENABLE_ZLIB_SUPPORT) | 
|  | 12 |  | 
| Paul Bakker | 367dae4 | 2009-06-28 21:50:27 +0000 | [diff] [blame] | 13 | add_executable(selftest selftest.c) | 
| Paul Bakker | b06819b | 2011-01-18 16:18:38 +0000 | [diff] [blame] | 14 | target_link_libraries(selftest ${libs}) | 
| Paul Bakker | 367dae4 | 2009-06-28 21:50:27 +0000 | [diff] [blame] | 15 |  | 
|  | 16 | add_executable(benchmark benchmark.c) | 
| Paul Bakker | b06819b | 2011-01-18 16:18:38 +0000 | [diff] [blame] | 17 | target_link_libraries(benchmark ${libs}) | 
| Paul Bakker | 367dae4 | 2009-06-28 21:50:27 +0000 | [diff] [blame] | 18 |  | 
| Andrzej Kurek | 0211c32 | 2018-03-15 05:16:24 -0400 | [diff] [blame] | 19 | if(TEST_CPP) | 
| Andrzej Kurek | 037ec4b | 2018-06-26 06:57:55 -0400 | [diff] [blame] | 20 | add_executable(cpp_dummy_build cpp_dummy_build.cpp) | 
|  | 21 | target_link_libraries(cpp_dummy_build ${libs}) | 
| Andrzej Kurek | 0211c32 | 2018-03-15 05:16:24 -0400 | [diff] [blame] | 22 | endif() | 
|  | 23 |  | 
| Manuel Pégourié-Gonnard | cb4137b | 2014-09-04 14:55:28 +0200 | [diff] [blame] | 24 | add_executable(udp_proxy udp_proxy.c) | 
|  | 25 | target_link_libraries(udp_proxy ${libs}) | 
|  | 26 |  | 
| Andres Amaya Garcia | 5ab74a1 | 2017-10-24 21:10:45 +0100 | [diff] [blame] | 27 | add_executable(zeroize zeroize.c) | 
|  | 28 | target_link_libraries(zeroize ${libs}) | 
|  | 29 |  | 
| Andres Amaya Garcia | cb9c015 | 2018-10-30 21:21:08 +0000 | [diff] [blame] | 30 | add_executable(query_compile_time_config query_compile_time_config.c) | 
|  | 31 | target_sources(query_compile_time_config PUBLIC ../ssl/query_config.c) | 
| Andres AG | 509ba69 | 2018-10-26 18:41:08 +0100 | [diff] [blame] | 32 | target_link_libraries(query_compile_time_config ${libs}) | 
|  | 33 |  | 
| Ron Eldor | 21cb3c3 | 2019-04-07 16:42:25 +0300 | [diff] [blame] | 34 | install(TARGETS selftest benchmark udp_proxy query_compile_time_config | 
| Paul Bakker | 547f73d | 2011-01-05 15:07:54 +0000 | [diff] [blame] | 35 | DESTINATION "bin" | 
|  | 36 | PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) |