cmake find_package examples

Signatures

find_package(<PackageName> [version] [EXACT] [QUIET] [MODULE]
  [REQUIRED|OPTIONAL] [[COMPONENTS] [components...]]
  [OPTIONAL_COMPONENTS components...]
  [REGISTRY_VIEW  (64|32|64_32|32_64|HOST|TARGET|BOTH)]
  [GLOBAL]
  [NO_POLICY_SCOPE]
  [BYPASS_PROVIDER]
)

Examples

ossia/score 3rdparty/eigen.cmake :2

find_package(eigen 3.4 GLOBAL CONFIG)

AMICI-dev/AMICI ThirdParty/SuiteSparse/SuiteSparse_config/CMakeLists.txt :78

find_package ( OpenMP COMPONENTS C GLOBAL )

awawa-dev/HyperHDR external/CMakeLists.txt :106

find_package(lunasvg GLOBAL)

celtera/avendish cmake/avendish.python.cmake :7

find_package(Python COMPONENTS Interpreter Development GLOBAL)

ossia/libossia cmake/deps/boost.cmake :4

find_package(Boost 1.${BOOST_MINOR_MINIMAL} EXACT QUIET GLOBAL)

adobe/lagrange CMakeLists.txt :373

find_package(Threads REQUIRED GLOBAL)

OpenMS/OpenMS src/openms/extern/CMakeLists.txt :44

find_package(nlohmann_json REQUIRED GLOBAL)

OpendTect/OpendTect CMakeModules/ODHDF5Utils.cmake :102

find_package( HDF5 QUIET NAMES hdf5 COMPONENTS C CXX shared GLOBAL )

DrTimothyAldenDavis/SuiteSparse CHOLMOD/CMakeLists.txt :91

find_package ( OpenMP COMPONENTS C GLOBAL )

DrTimothyAldenDavis/GraphBLAS CMakeLists.txt :105

find_package ( OpenMP COMPONENTS C GLOBAL )

jlblancoc/suitesparse-metis-for-windows SuiteSparse/LAGraph/CMakeLists.txt :176

find_package ( OpenMP COMPONENTS C GLOBAL )

FalkorDB/FalkorDB deps/GraphBLAS/CMakeLists.txt :105

find_package ( OpenMP COMPONENTS C GLOBAL )