- Added option to prevent installation of header files

This commit is contained in:
Paul Bakker 2011-12-11 11:25:30 +00:00
parent 55d3fd9aff
commit 9bc2f320b8

View File

@ -1,5 +1,11 @@
FILE(GLOB headers "polarssl/*.h")
option(INSTALL_POLARSSL_HEADERS "Install PolarSSL headers." ON)
INSTALL(FILES ${headers}
if(INSTALL_POLARSSL_HEADERS)
file(GLOB headers "polarssl/*.h")
install(FILES ${headers}
DESTINATION include/polarssl
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
endif(INSTALL_POLARSSL_HEADERS)