1option(INSTALL_MBEDTLS_HEADERS "Install mbed TLS headers." ON) 2 3if(INSTALL_MBEDTLS_HEADERS) 4 5 file(GLOB headers "mbedtls/*.h") 6 7 install(FILES ${headers} 8 DESTINATION include/mbedtls 9 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) 10 11endif(INSTALL_MBEDTLS_HEADERS) 12 13# Make config.h available in an out-of-source build. ssl-opt.sh requires it. 14if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) 15 link_to_source(mbedtls) 16endif() 17