CMakeLists.txt 694 B

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