mbedtls/programs/x509/CMakeLists.txt

31 lines
633 B
CMake
Raw Normal View History

set(libs
mbedx509
)
if(USE_PKCS11_HELPER_LIBRARY)
set(libs ${libs} pkcs11-helper)
endif(USE_PKCS11_HELPER_LIBRARY)
2012-07-03 17:10:33 +02:00
if(ENABLE_ZLIB_SUPPORT)
set(libs ${libs} ${ZLIB_LIBRARIES})
endif(ENABLE_ZLIB_SUPPORT)
set(executables
cert_app
cert_req
cert_write
crl_app
req_app
)
foreach(exe IN LISTS executables)
add_executable(${exe} ${exe}.c)
target_link_libraries(${exe} ${libs})
endforeach()
2013-08-25 10:34:32 +02:00
target_link_libraries(cert_app mbedtls)
install(TARGETS ${executables}
DESTINATION "bin"
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)