2015-01-27 16:44:46 +01:00
|
|
|
option(INSTALL_MBEDTLS_HEADERS "Install mbed TLS headers." ON)
|
2011-01-05 16:07:54 +01:00
|
|
|
|
2015-01-27 16:44:46 +01:00
|
|
|
if(INSTALL_MBEDTLS_HEADERS)
|
2011-12-11 12:25:30 +01:00
|
|
|
|
2015-06-25 09:20:03 +02:00
|
|
|
file(GLOB headers "mbedtls/*.h")
|
2018-10-31 20:00:48 +01:00
|
|
|
file(GLOB psa_headers "psa/*.h")
|
2018-10-25 13:47:03 +02:00
|
|
|
file(GLOB everest_headers "../3rdparty/everest/include/*.h")
|
2011-12-11 12:25:30 +01:00
|
|
|
|
2018-10-25 13:47:03 +02:00
|
|
|
install(FILES ${headers} ${everest_headers}
|
2015-03-09 18:05:11 +01:00
|
|
|
DESTINATION include/mbedtls
|
2011-01-05 16:07:54 +01:00
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
|
2011-12-11 12:25:30 +01:00
|
|
|
|
2018-10-31 20:00:48 +01:00
|
|
|
install(FILES ${psa_headers}
|
|
|
|
DESTINATION include/psa
|
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
|
|
|
|
|
2015-01-27 16:44:46 +01:00
|
|
|
endif(INSTALL_MBEDTLS_HEADERS)
|
2018-03-21 12:12:47 +01:00
|
|
|
|
2018-11-02 11:51:09 +01:00
|
|
|
# Make config.h available in an out-of-source build.
|
2019-04-28 07:51:37 +02:00
|
|
|
if (ENABLE_TESTING AND NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2018-03-21 12:12:47 +01:00
|
|
|
link_to_source(mbedtls)
|
2019-01-02 17:24:41 +01:00
|
|
|
link_to_source(psa)
|
2018-03-21 12:12:47 +01:00
|
|
|
endif()
|