blob: 02d783c27019848577809d36cd0b8da0f12b1784 [file] [log] [blame]
Paul Bakkerb06819b2011-01-18 16:18:38 +00001set(libs
Gilles Peskinee732f042020-02-11 16:55:12 +01002 mbedx509
Paul Bakkerb06819b2011-01-18 16:18:38 +00003)
4
5if(USE_PKCS11_HELPER_LIBRARY)
6 set(libs ${libs} pkcs11-helper)
7endif(USE_PKCS11_HELPER_LIBRARY)
8
Paul Bakker92eeea42012-07-03 15:10:33 +00009if(ENABLE_ZLIB_SUPPORT)
10 set(libs ${libs} ${ZLIB_LIBRARIES})
11endif(ENABLE_ZLIB_SUPPORT)
12
Ronald Cronbfd45f12020-06-05 11:15:31 +020013set(executables
14 cert_app
15 cert_req
16 cert_write
17 crl_app
18 req_app
19)
Paul Bakker547f73d2011-01-05 15:07:54 +000020
Ronald Cronbfd45f12020-06-05 11:15:31 +020021foreach(exe IN LISTS executables)
22 add_executable(${exe} ${exe}.c)
23 target_link_libraries(${exe} ${libs})
24endforeach()
Paul Bakkera9507c02011-02-12 15:27:28 +000025
Ronald Cronbfd45f12020-06-05 11:15:31 +020026target_link_libraries(cert_app mbedtls)
Paul Bakkerf9f377e2013-09-09 15:35:10 +020027
Ronald Cronbfd45f12020-06-05 11:15:31 +020028install(TARGETS ${executables}
Paul Bakker547f73d2011-01-05 15:07:54 +000029 DESTINATION "bin"
30 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)