mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 07:48:14 +00:00
Add cmake compatibility targets
This commit is contained in:
parent
8984cc8a71
commit
2a9c8b62bf
1 changed files with 21 additions and 0 deletions
|
@ -133,3 +133,24 @@ if(USE_SHARED_MBEDTLS_LIBRARY)
|
|||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
||||
endif(USE_SHARED_MBEDTLS_LIBRARY)
|
||||
|
||||
if(UNIX)
|
||||
add_custom_target(polarssl
|
||||
DEPENDS mbedtls # TODO: and mbedtls_static is shared is defined
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/scripts/polarssl_symlinks.sh ${CMAKE_BINARY_DIR}/library
|
||||
)
|
||||
|
||||
if(USE_STATIC_MBEDTLS_LIBRARY AND USE_SHARED_MBEDTLS_LIBRARY)
|
||||
add_dependencies(polarssl mbedtls_static)
|
||||
endif()
|
||||
|
||||
add_custom_target(polarssl-clean
|
||||
COMMAND make clean
|
||||
COMMAND rm -f ${CMAKE_BINARY_DIR}/library/libpolarssl.*
|
||||
)
|
||||
|
||||
add_custom_target(polarssl-install
|
||||
COMMAND make install
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/scripts/polarssl_symlinks.sh ${DESTDIR}/${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}
|
||||
)
|
||||
endif(UNIX)
|
||||
|
|
Loading…
Reference in a new issue