Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / mbedtls / repo / programs / x509 / 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(cert_app cert_app.c)
14 target_link_libraries(cert_app ${libs})
15
16 add_executable(crl_app crl_app.c)
17 target_link_libraries(crl_app ${libs})
18
19 add_executable(req_app req_app.c)
20 target_link_libraries(req_app ${libs})
21
22 add_executable(cert_req cert_req.c)
23 target_link_libraries(cert_req ${libs})
24
25 add_executable(cert_write cert_write.c)
26 target_link_libraries(cert_write ${libs})
27
28 install(TARGETS cert_app crl_app req_app cert_req cert_write
29         DESTINATION "bin"
30         PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)