cmake find_package(OPTIONAL_COMPONENTS) examples

alembic/alembic python/PyAlembic/CMakeLists.txt :54

FIND_PACKAGE(Boost 1.53.0 OPTIONAL_COMPONENTS "python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}")

CGAL/cgal AABB_tree/benchmark/AABB_tree/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)

CGAL/cgal AABB_tree/demo/AABB_tree/CMakeLists.txt :10

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Alpha_shapes_3/demo/Alpha_shapes_3/CMakeLists.txt :10

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Arrangement_on_surface_2/demo/Arrangement_on_surface_2/CMakeLists.txt :15

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core Qt6)

CGAL/cgal Arrangement_on_surface_2/examples/Arrangement_on_surface_2/CMakeLists.txt :7

find_package(CGAL REQUIRED COMPONENTS Core OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Basic_viewer/examples/Basic_viewer/CMakeLists.txt :13

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Boolean_set_operations_2/examples/Boolean_set_operations_2/CMakeLists.txt :7

find_package(CGAL REQUIRED COMPONENTS Core OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Circular_kernel_3/demo/Circular_kernel_3/CMakeLists.txt :4

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Classification/examples/Classification/CMakeLists.txt :12

find_package(Boost OPTIONAL_COMPONENTS serialization iostreams)

CGAL/cgal Classification/test/Classification/CMakeLists.txt :12

find_package(Boost OPTIONAL_COMPONENTS serialization iostreams)

CGAL/cgal Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt :4

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)

CGAL/cgal Frechet_distance/examples/Frechet_distance/CMakeLists.txt :7

find_package(CGAL REQUIRED QUIET OPTIONAL_COMPONENTS Core )

CGAL/cgal GraphicsView/demo/Alpha_shapes_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal GraphicsView/demo/Apollonius_graph_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal GraphicsView/demo/Bounding_volumes/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal GraphicsView/demo/Circular_kernel_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal GraphicsView/demo/GraphicsView/CMakeLists.txt :6

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal GraphicsView/demo/L1_Voronoi_diagram_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal GraphicsView/demo/Largest_empty_rect_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal GraphicsView/demo/Periodic_2_triangulation_2/CMakeLists.txt :4

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal GraphicsView/demo/Polygon/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6 Core)

CGAL/cgal GraphicsView/demo/Segment_Delaunay_graph_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6 Core)

CGAL/cgal GraphicsView/demo/Snap_rounding_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal GraphicsView/demo/Spatial_searching_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal GraphicsView/demo/Stream_lines_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal GraphicsView/demo/Triangulation_2/CMakeLists.txt :12

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core Qt6)

CGAL/cgal Installation/cmake/modules/CGAL_SetupCGAL_Qt6Dependencies.cmake :28

find_package(Qt6 QUIET COMPONENTS OpenGL OpenGLWidgets Widgets OPTIONAL_COMPONENTS Svg)

CGAL/cgal Kernel_23/benchmark/Kernel_23/CMakeLists.txt :7

find_package(CGAL QUIET OPTIONAL_COMPONENTS Core)

CGAL/cgal Lab/demo/Lab/CMakeLists.txt :40

find_package(Qt6 QUIET
             COMPONENTS OpenGLWidgets Widgets Qml
             OPTIONAL_COMPONENTS WebSockets Network)

CGAL/cgal Lab/demo/Lab/implicit_functions/CMakeLists.txt :23

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Lab/demo/Lab/Plugins/Classification/CMakeLists.txt :5

find_package(Boost QUIET OPTIONAL_COMPONENTS serialization iostreams)

CGAL/cgal Lab/demo/Lab/Plugins/Mesh_3/CMakeLists.txt :49

find_package(Boost QUIET OPTIONAL_COMPONENTS filesystem system)

CGAL/cgal Lab/demo/Lab/Plugins/Three_examples/CMakeLists.txt :13

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6 ImageIO)

CGAL/cgal Lab/demo/Lab/Plugins/Three_examples/CMakeLists.txt :15

find_package(Qt6 QUIET
             COMPONENTS OpenGLWidgets Svg
             OPTIONAL_COMPONENTS WebSockets)

CGAL/cgal Linear_cell_complex/demo/Linear_cell_complex/CMakeLists.txt :33

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Linear_cell_complex/examples/Linear_cell_complex/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Mesh_2/examples/Mesh_2/CMakeLists.txt :4

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Nef_3/examples/Nef_3/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Orthtree/benchmark/Orthtree/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)

CGAL/cgal Orthtree/examples/Orthtree/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)

CGAL/cgal Orthtree/test/Orthtree/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)

CGAL/cgal Periodic_2_triangulation_2/examples/Periodic_2_triangulation_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Periodic_3_triangulation_3/demo/Periodic_3_triangulation_3/CMakeLists.txt :8

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Periodic_3_triangulation_3/demo/Periodic_Lloyd_3/CMakeLists.txt :11

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Periodic_4_hyperbolic_triangulation_2/examples/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt :4

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)

CGAL/cgal Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/CMakeLists.txt :4

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)

CGAL/cgal Point_set_3/examples/Point_set_3/CMakeLists.txt :8

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Polygon/examples/Polygon/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Polygon_repair/examples/Polygon_repair/CMakeLists.txt :7

find_package(CGAL  REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Polygon_repair/test/Polygon_repair/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Polyline_simplification_2/demo/Polyline_simplification_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Segment_Delaunay_graph_2/examples/Segment_Delaunay_graph_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)

CGAL/cgal Surface_mesh/examples/Surface_mesh/CMakeLists.txt :13

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/CMakeLists.txt :4

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)

CGAL/cgal Surface_mesh_topology/examples/Surface_mesh_topology/CMakeLists.txt :4

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Surface_mesh_topology/test/Surface_mesh_topology/CMakeLists.txt :4

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Triangulation_2/examples/Triangulation_2/CMakeLists.txt :7

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Triangulation_3/demo/Triangulation_3/CMakeLists.txt :10

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Triangulation_3/examples/Triangulation_3/CMakeLists.txt :4

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

CGAL/cgal Triangulation_on_sphere_2/demo/Triangulation_on_sphere_2/CMakeLists.txt :16

find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt6)

projectchrono/chrono src/chrono_swig/chrono_python/CMakeLists.txt :52

find_package(Python3 REQUIRED 
             COMPONENTS Interpreter Development
             OPTIONAL_COMPONENTS NumPy)

projectchrono/chrono template_project/CMakeLists.txt :21

#    find_package(Chrono
#                 COMPONENTS req_module1 req_module1 ...
#                 OPTIONAL_COMPONENTS opt_module1 opt_module2 ...
#                 CONFIG)

projectchrono/chrono template_project/CMakeLists.txt :68

find_package(Chrono
             COMPONENTS Irrlicht
             OPTIONAL_COMPONENTS PardisoMKL
             CONFIG)

projectchrono/chrono template_project_fmi2/CMakeLists.txt :12

find_package(Chrono
             COMPONENTS FMI                 # required Chrono module
             OPTIONAL_COMPONENTS Irrlicht   # optional Chrono module
             CONFIG)

projectchrono/chrono template_project_ros/CMakeLists.txt :21

#    find_package(Chrono
#                 COMPONENTS req_module1 req_module1 ...
#                 OPTIONAL_COMPONENTS opt_module1 opt_module2 ...
#                 CONFIG)

projectchrono/chrono template_project_ros/CMakeLists.txt :67

find_package(Chrono
             COMPONENTS ROS
             OPTIONAL_COMPONENTS
             CONFIG)

projectchrono/chrono template_project_vehicle_cosim/CMakeLists.txt :21

#    find_package(Chrono
#	                COMPONENTS req_module1 req_module1 ...
#	                OPTIONAL_COMPONENTS opt_module1 opt_module2 ...
#                 CONFIG)

projectchrono/chrono template_project_vehicle_cosim/CMakeLists.txt :40

find_package(Chrono
             COMPONENTS VehicleCosim
             OPTIONAL_COMPONENTS Irrlicht
             CONFIG)

ElmerCSC/elmerfem CMakeLists.txt :522

FIND_PACKAGE(Hypre REQUIRED OPTIONAL_COMPONENTS Euclid parcsr_ls ParaSails IJ_mv FEI core QUIET)

embree/embree common/cmake/FindTBB.cmake :9

# find_package(TBB 2017.0 EXACT REQUIRED
#              tbb tbbmalloc
#              OPTIONAL_COMPONENTS tbbmalloc_proxy
#              QUIET)

FreeRDP/FreeRDP cmake/Doxygen.cmake :8

find_package(Doxygen REQUIRED dot OPTIONAL_COMPONENTS mscgen dia)

KDAB/GammaRay CMakeLists.txt :444

find_package(
    Qt${QT_VERSION_MAJOR} NO_MODULE QUIET
    OPTIONAL_COMPONENTS
        3DAnimation
        3DExtras
        3DInput
        3DLogic
        3DRender
        3DQuick
        Bluetooth
        Concurrent
        Designer
        Location
        OpenGL
        Positioning
        Qml
        Quick
        QuickWidgets
        Svg
        Test
        WebEngineWidgets
        Widgets
        WaylandCompositor
)

KDAB/GammaRay CMakeLists.txt :494

find_package(Qt${QT_VERSION_MAJOR} NO_MODULE QUIET OPTIONAL_COMPONENTS Help LinguistTools)

KDAB/GammaRay docs/CMakeLists.txt :11

find_package(Qt${QT_VERSION_MAJOR} NO_MODULE QUIET OPTIONAL_COMPONENTS Help)

KDAB/GammaRay docs/CMakeLists.txt :13

find_package(Qt${QT_VERSION_MAJOR} NO_MODULE QUIET OPTIONAL_COMPONENTS ToolsTools)

KDAB/GammaRay docs/collection/CMakeLists.txt :10

find_package(Qt${QT_VERSION_MAJOR} NO_MODULE QUIET OPTIONAL_COMPONENTS Help)

KDAB/GammaRay docs/collection/CMakeLists.txt :12

find_package(Qt${QT_VERSION_MAJOR} NO_MODULE QUIET OPTIONAL_COMPONENTS ToolsTools)

google/glog CMakeLists.txt :67

find_package (GTest 1.11 COMPONENTS GTest OPTIONAL_COMPONENTS GMock NO_MODULE)

gnuradio/gnuradio cmake/Modules/GrBoost.cmake :111

find_package(
    Boost ${GR_BOOST_MIN_VERSION} ${GR_BOOST_REQUIRED}
    COMPONENTS ${BOOST_REQUIRED_COMPONENTS}
    OPTIONAL_COMPONENTS unit_test_framework)

gnuradio/gnuradio gr-qtgui/CMakeLists.txt :15

find_package(Qt5 QUIET
    COMPONENTS Widgets
    OPTIONAL_COMPONENTS OpenGL
)

sciapp/gr CMakeLists.txt :108

find_package(OpenGL OPTIONAL_COMPONENTS OpenGL)

sciapp/gr CMakeLists.txt :110

find_package(
  Qt6
  OPTIONAL_COMPONENTS
    Widgets
    Core
    Network
    Gui
    PrintSupport
)

sciapp/gr CMakeLists.txt :120

find_package(
  Qt5
  OPTIONAL_COMPONENTS
    Widgets
    Core
    Network
    Gui
    PrintSupport
)

HDFGroup/hdf4 CMakeFilters.cmake :120

find_package (JPEG NAMES ${JPEG_PACKAGE_NAME}${HDF_PACKAGE_EXT} CONFIG OPTIONAL_COMPONENTS ${JPEG_SEARCH_TYPE})

HDFGroup/hdf4 CMakeFilters.cmake :189

find_package (ZLIB NAMES ${PACKAGE_NAME} CONFIG OPTIONAL_COMPONENTS ${ZLIB_SEARCH_TYPE})

HDFGroup/hdf4 CMakeFilters.cmake :255

find_package (${LIBAEC_PACKAGE_NAME} NAMES ${LIBAEC_PACKAGE_NAME}${HDF_PACKAGE_EXT} OPTIONAL_COMPONENTS ${LIBAEC_SEARCH_TYPE})

HDFGroup/hdf5 CMakeFilters.cmake :121

find_package (ZLIB NAMES ${Z_PACKAGE_NAME} CONFIG OPTIONAL_COMPONENTS ${ZLIB_SEARCH_TYPE})

HDFGroup/hdf5 CMakeFilters.cmake :189

find_package (${LIBAEC_PACKAGE_NAME} NAMES ${LIBAEC_PACKAGE_NAME}${HDF_PACKAGE_EXT} OPTIONAL_COMPONENTS ${LIBAEC_SEARCH_TYPE})

InsightSoftwareConsortium/ITK Wrapping/Generators/Doc/CMakeLists.txt :1

find_package(Doxygen REQUIRED OPTIONAL_COMPONENTS dot)

KhronosGroup/KTX cmake/docs.cmake :7

find_package(Doxygen REQUIRED OPTIONAL_COMPONENTS dot)

ledger/ledger CMakeLists.txt :89

find_package(Boost ${Required_Boost_Version}
  REQUIRED date_time filesystem system iostreams regex unit_test_framework
  ${BOOST_PYTHON} OPTIONAL_COMPONENTS nowide
  CONFIG)

ledger/ledger CMakeLists.txt :116

find_package(ICU ${Required_Icu_Version} OPTIONAL_COMPONENTS uc i18n)

libjxl/libjxl doc/CMakeLists.txt :11

find_package(Doxygen OPTIONAL_COMPONENTS dot)

mfem/mfem CMakeLists.txt :366

find_package(SUNDIALS REQUIRED ${SUNDIALS_COMPONENTS}
  OPTIONAL_COMPONENTS Core)

mfem/mfem CMakeLists.txt :452

find_package(SCOREC 2.2.6 REQUIRED OPTIONAL_COMPONENTS gmi_sim
  CONFIG PATHS ${PUMI_DIR} NO_DEFAULT_PATH)

wjakob/nanobind CMakeLists.txt :148

find_package(Python 3.8
  REQUIRED COMPONENTS Interpreter ${NB_PYTHON_DEV_MODULE}
  OPTIONAL_COMPONENTS Development.SABIModule)

OpenImageDenoise/oidn cmake/FindTBB.cmake :9

# find_package(TBB 2017.0 EXACT REQUIRED
#              tbb tbbmalloc
#              OPTIONAL_COMPONENTS tbbmalloc_proxy
#              QUIET)