blob: 985a3530b9799529e05c046068d1fe3d892a01ee [file] [log] [blame] [raw]
Manuel Pégourié-Gonnard9014b6f2015-01-27 15:44:46 +00001option(INSTALL_MBEDTLS_HEADERS "Install mbed TLS headers." ON)
Paul Bakker547f73d2011-01-05 15:07:54 +00002
Manuel Pégourié-Gonnard9014b6f2015-01-27 15:44:46 +00003if(INSTALL_MBEDTLS_HEADERS)
Paul Bakker9bc2f322011-12-11 11:25:30 +00004
Manuel Pégourié-Gonnard216a1832015-06-25 09:20:03 +02005 file(GLOB headers "mbedtls/*.h")
Paul Bakker9bc2f322011-12-11 11:25:30 +00006
Manuel Pégourié-Gonnard216a1832015-06-25 09:20:03 +02007 install(FILES ${headers}
Manuel Pégourié-Gonnard7f809972015-03-09 17:05:11 +00008 DESTINATION include/mbedtls
Paul Bakker547f73d2011-01-05 15:07:54 +00009 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
Paul Bakker9bc2f322011-12-11 11:25:30 +000010
Manuel Pégourié-Gonnard9014b6f2015-01-27 15:44:46 +000011endif(INSTALL_MBEDTLS_HEADERS)