CMakeLists.txt 796 B

123456789101112131415161718192021222324252627282930
  1. set(libs
  2. mbedtls
  3. )
  4. if(USE_PKCS11_HELPER_LIBRARY)
  5. set(libs ${libs} pkcs11-helper)
  6. endif(USE_PKCS11_HELPER_LIBRARY)
  7. if(ENABLE_ZLIB_SUPPORT)
  8. set(libs ${libs} ${ZLIB_LIBRARIES})
  9. endif(ENABLE_ZLIB_SUPPORT)
  10. add_executable(cert_app cert_app.c)
  11. target_link_libraries(cert_app ${libs})
  12. add_executable(crl_app crl_app.c)
  13. target_link_libraries(crl_app ${libs})
  14. add_executable(req_app req_app.c)
  15. target_link_libraries(req_app ${libs})
  16. add_executable(cert_req cert_req.c)
  17. target_link_libraries(cert_req ${libs})
  18. add_executable(cert_write cert_write.c)
  19. target_link_libraries(cert_write ${libs})
  20. install(TARGETS cert_app crl_app req_app cert_req cert_write
  21. DESTINATION "bin"
  22. PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)