blob: 39b8b5bab39b9f7ecdf0572b21186252f666a6fb [file] [log] [blame]
Gilles Peskine70824f22020-02-26 19:05:33 +01001set(libs
2 mbedtls
3)
4
5if(USE_PKCS11_HELPER_LIBRARY)
6 set(libs ${libs} pkcs11-helper)
7endif(USE_PKCS11_HELPER_LIBRARY)
8
9if(ENABLE_ZLIB_SUPPORT)
10 set(libs ${libs} ${ZLIB_LIBRARIES})
11endif(ENABLE_ZLIB_SUPPORT)
12
13add_executable(cert_app cert_app.c)
14target_link_libraries(cert_app ${libs})
15
16add_executable(crl_app crl_app.c)
17target_link_libraries(crl_app ${libs})
18
19add_executable(req_app req_app.c)
20target_link_libraries(req_app ${libs})
21
22add_executable(cert_req cert_req.c)
23target_link_libraries(cert_req ${libs})
24
25add_executable(cert_write cert_write.c)
26target_link_libraries(cert_write ${libs})
27
28install(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)