Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / mbedtls / repo / programs / test / CMakeLists.txt
1 set(libs
2     mbedtls
3 )
4
5 if(USE_PKCS11_HELPER_LIBRARY)
6     set(libs ${libs} pkcs11-helper)
7 endif(USE_PKCS11_HELPER_LIBRARY)
8
9 if(ENABLE_ZLIB_SUPPORT)
10     set(libs ${libs} ${ZLIB_LIBRARIES})
11 endif(ENABLE_ZLIB_SUPPORT)
12
13 add_executable(selftest selftest.c)
14 target_link_libraries(selftest ${libs})
15
16 add_executable(benchmark benchmark.c)
17 target_link_libraries(benchmark ${libs})
18
19 if(TEST_CPP)
20     add_executable(cpp_dummy_build cpp_dummy_build.cpp)
21     target_link_libraries(cpp_dummy_build ${libs})
22 endif()
23
24 add_executable(udp_proxy udp_proxy.c)
25 target_link_libraries(udp_proxy ${libs})
26
27 add_executable(zeroize zeroize.c)
28 target_link_libraries(zeroize ${libs})
29
30 add_executable(query_compile_time_config query_compile_time_config.c)
31 target_sources(query_compile_time_config PUBLIC ../ssl/query_config.c)
32 target_link_libraries(query_compile_time_config ${libs})
33
34 install(TARGETS selftest benchmark udp_proxy query_compile_time_config
35         DESTINATION "bin"
36         PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)