blob: 0d2b9460a7218133f4df910f6422a29bdf680a69 [file] [log] [blame]
Paul Bakkerb06819b2011-01-18 16:18:38 +00001set(libs
Gilles Peskine4fa9f9f2020-02-26 19:05:31 +01002 mbedtls
Paul Bakkerb06819b2011-01-18 16:18:38 +00003)
4
Gilles Peskine5bb8bec2020-02-26 19:11:43 +01005if(ENABLE_ZLIB_SUPPORT)
6 set(libs ${libs} ${ZLIB_LIBRARIES})
7endif(ENABLE_ZLIB_SUPPORT)
8
Paul Bakker367dae42009-06-28 21:50:27 +00009add_executable(selftest selftest.c)
Paul Bakkerb06819b2011-01-18 16:18:38 +000010target_link_libraries(selftest ${libs})
Paul Bakker367dae42009-06-28 21:50:27 +000011
12add_executable(benchmark benchmark.c)
Paul Bakkerb06819b2011-01-18 16:18:38 +000013target_link_libraries(benchmark ${libs})
Paul Bakker367dae42009-06-28 21:50:27 +000014
Andrzej Kurek0211c322018-03-15 05:16:24 -040015if(TEST_CPP)
Andrzej Kurek037ec4b2018-06-26 06:57:55 -040016 add_executable(cpp_dummy_build cpp_dummy_build.cpp)
17 target_link_libraries(cpp_dummy_build ${libs})
Andrzej Kurek0211c322018-03-15 05:16:24 -040018endif()
19
Gilles Peskine70824f22020-02-26 19:05:33 +010020add_executable(udp_proxy udp_proxy.c)
21target_link_libraries(udp_proxy ${libs})
22
Andres Amaya Garcia5ab74a12017-10-24 21:10:45 +010023add_executable(zeroize zeroize.c)
24target_link_libraries(zeroize ${libs})
25
Andres Amaya Garciacb9c0152018-10-30 21:21:08 +000026add_executable(query_compile_time_config query_compile_time_config.c)
Jaeden Amero03c60de2019-02-28 11:37:23 +000027target_sources(query_compile_time_config PUBLIC query_config.c)
Andres AG509ba692018-10-26 18:41:08 +010028target_link_libraries(query_compile_time_config ${libs})
29
Gilles Peskine70824f22020-02-26 19:05:33 +010030install(TARGETS selftest benchmark udp_proxy query_compile_time_config
Paul Bakker547f73d2011-01-05 15:07:54 +000031 DESTINATION "bin"
32 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)