summaryrefslogtreecommitdiff
path: root/graphics/openexr-website-docs/files/patch-CMakeLists.txt
blob: cd24cbc3f1c9953ffb8374a72bf50c3af8cd2ea7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
--- CMakeLists.txt.orig	2025-10-07 15:22:39 UTC
+++ CMakeLists.txt
@@ -60,8 +60,6 @@ include(cmake/OpenEXRSetup.cmake)
 
 include(cmake/LibraryDefine.cmake)
 include(cmake/OpenEXRSetup.cmake)
-add_subdirectory(cmake)
-message(STATUS "Configure ${OPENEXR_PACKAGE_NAME}, library API version: ${OPENEXR_LIB_VERSION}")
 
 # Hint: This can be set to enable custom find_package
 # search paths, probably best to set it when configuring
@@ -78,15 +76,6 @@ endif()
   enable_testing()
 endif()
 
-# Include these two modules without enable/disable options
-if (OPENEXR_BUILD_LIBS)
-  add_subdirectory(src/lib)
-endif()
-
-if(OPENEXR_BUILD_TOOLS AND OPENEXR_BUILD_LIBS)
-  add_subdirectory(src/bin)
-endif()
-
 # Tell CMake where to find the OpenEXRConfig.cmake file. Makes it possible to call
 # find_package(OpenEXR) in downstream projects
 set(OpenEXR_DIR "${CMAKE_CURRENT_BINARY_DIR}/cmake" CACHE PATH "" FORCE)
@@ -94,10 +83,6 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/cmake/OpenEXRT
 # Can be empty since we already defined the targets in add_subdirectory
 file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/cmake/OpenEXRTargets.cmake" "# Dummy file")
 
-if(OPENEXR_BUILD_EXAMPLES AND OPENEXR_BUILD_LIBS)
-  add_subdirectory( src/examples )
-endif()
-
 # If you want to use ctest to configure, build and
 # upload the results, cmake has builtin support for
 # submitting to CDash, or any server who speaks the
@@ -120,33 +105,10 @@ endif()
 #set(CTEST_DROP_SITE "open.cdash.org")
 #set(CTEST_DROP_LOCATION "/submit.php?project=MyProject")
 #set(CTEST_DROP_SITE_CDASH TRUE)
-include(CTest)
 
-if(BUILD_TESTING AND OPENEXR_BUILD_LIBS AND NOT OPENEXR_IS_SUBPROJECT)
-  add_subdirectory(src/test)
-endif()
-
 # Including this module will add a `clang-format` target to the build if
 # the clang-format executable can be found. Only do this if we are top level
-if(NOT OPENEXR_IS_SUBPROJECT)
-  include(cmake/clang-format.cmake)
-endif()
-
-option(OPENEXR_INSTALL_DOCS "Set ON to install tool manpages")
-if (OPENEXR_INSTALL_DOCS AND NOT OPENEXR_IS_SUBPROJECT)
-  add_subdirectory(docs)
-endif()
-
 option(BUILD_WEBSITE "Set ON to build website source")
 if (BUILD_WEBSITE AND NOT OPENEXR_IS_SUBPROJECT)
   add_subdirectory(website)
-endif()
-
-if (OPENEXR_BUILD_LIBS AND NOT OPENEXR_IS_SUBPROJECT)
-  # Even if not building the website, still make sure the website example code compiles.
-  add_subdirectory(website/src)
-endif()
-
-if (OPENEXR_BUILD_PYTHON AND OPENEXR_BUILD_LIBS AND NOT OPENEXR_IS_SUBPROJECT)
-  add_subdirectory(src/wrappers/python)
 endif()