CMakeLists.txt 501 B

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