Make docs install optional in CMake
@@ -48,7 +48,11 @@ include(config/LibraryDefine.cmake)
add_subdirectory( IlmImf )
add_subdirectory( IlmImfUtil )
+
+option(INSTALL_OPENEXR_EXAMPLES "Install OpenEXR examples" ON)
+if(INSTALL_OPENEXR_EXAMPLES)
add_subdirectory( IlmImfExamples )
+endif()
##########################
# Tests
@@ -78,4 +82,7 @@ if(OPENEXR_BUILD_UTILS)
add_subdirectory( exrmultipart )
endif()
+option(INSTALL_OPENEXR_DOCS "Install OpenEXR documentation" ON)
+if(INSTALL_OPENEXR_DOCS)
add_subdirectory(doc)
+endif()
