mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-29 09:21:19 +00:00
0f2e87bdf5
Replace custom LIB_INSTALL_DIR with standard CMAKE_INSTALL_LIBDIR variable. For backward compatibility, set CMAKE_INSTALL_LIBDIR if LIB_INSTALL_DIR is set. Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
28 lines
861 B
CMake
28 lines
861 B
CMake
add_library(everest
|
|
library/everest.c
|
|
library/x25519.c
|
|
library/Hacl_Curve25519_joined.c)
|
|
|
|
target_include_directories(everest
|
|
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
$<BUILD_INTERFACE:${MBEDTLS_DIR}/include>
|
|
$<INSTALL_INTERFACE:include>
|
|
PRIVATE include/everest
|
|
include/everest/kremlib
|
|
${MBEDTLS_DIR}/library/)
|
|
|
|
if(INSTALL_MBEDTLS_HEADERS)
|
|
|
|
install(DIRECTORY include/everest
|
|
DESTINATION include
|
|
FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
|
DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
|
FILES_MATCHING PATTERN "*.h")
|
|
|
|
endif(INSTALL_MBEDTLS_HEADERS)
|
|
|
|
install(TARGETS everest
|
|
EXPORT MbedTLSTargets
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
|