cmake foreach examples

Signatures

foreach(<loop_var> <items>)
  <commands>
endforeach()

Examples

nCine/nCine cmake/ncine_build_android.cmake :269

foreach(ARCHITECTURE ${NCINE_NDK_ARCHITECTURES})

timi-liuliang/echo editor/Qt/5.10.0/msvc2017_64/lib/cmake/Qt53DExtras/Qt53DExtrasConfig.cmake :64

foreach(_dir ${Qt53DExtras_PRIVATE_INCLUDE_DIRS})

etorth/mir2x CMakeLists.txt :133

FOREACH(T_FILE ${T_F_LIST})

geodynamics/aspect CMakeLists.txt :847

foreach(_T ${TARGET_EXECUTABLES})

AtomicGameEngine/AtomicGameEngine Build/CMake/Modules/AtomicCommon.cmake :84

foreach (LOOP RANGE 1)

u3d-community/U3D cmake/Modules/CheckCompilerToolchain.cmake :177

foreach (VAR X86 HAVE_MMX HAVE_SSE HAVE_SSE2 RTTI EXCEPTIONS IS_TRIVIALLY_DEFAULT_CONSTRUCTIBLE IS_TRIVIALLY_DESTRUCTIBLE IS_TRIVIALLY_COPY_ASSIGNABLE IS_TRIVIALLY_COPY_CONSTRUCTIBLE)

IFL-CAMP/supra cmake/FindCUDA_old/make2cmake.cmake :62

foreach(file ${depend_text})

microsoft/scenepic test/CMakeLists.txt :55

foreach( test ${TESTS} )

mgerhardy/caveexpress cmake/macros.cmake :297

foreach(VAR ${VARIABLES})

Oslandia/SFCGAL src/CMakeLists.txt :6

foreach (header ${SFCGAL_HEADERS_COPIED})

zer011b/fdtd3d CMakeLists.txt :77

foreach (mode IN LISTS SUPPORTED_DIM_MODES_2D)

oceancx/CXEngine cmake/cotire.cmake :911

foreach (_definition ${ARGN})

alicevision/AliceVision src/cmake/CodeCoverage.cmake :261

foreach(EXCLUDE ${Coverage_EXCLUDE} ${COVERAGE_EXCLUDES} ${COVERAGE_LCOV_EXCLUDES})

f3d-app/f3d library/testing/CMakeLists.txt :157

foreach (test ${libf3dSDKTests_list})

o3de/o3de cmake/Gems.cmake :261

foreach(gem_dependency IN LISTS gem_dependencies)

prusa3d/PrusaSlicer CMakeLists.txt :552

foreach(po_file ${L10N_PO_FILES})

FreeCAD/FreeCAD tests/CMakeLists.txt :147

foreach(OUTPUT_CONFIG Debug Release RelWithDebInfo MinSizeRel)

OGRECave/ogre Tests/VisualTests/CMakeLists.txt :82

foreach (rs ${TEST_RENDER_SYSTEMS})

godlikepanos/anki-3d-engine AnKi/CMakeLists.txt :3

foreach(TMP ${ANKI_SUB_DIRS})

prusa3d/Prusa-Firmware lib/Catch2/CMake/FindLcov.cmake :255

foreach(FILE ${SOURCES})

bambulab/BambuStudio CMakeLists.txt :394

foreach(tgt ${targets})

tinyobjloader/tinyobjloader cmake/clang-cl-msvc-windows.cmake :132

foreach(header ${headers})

SoftFever/OrcaSlicer cmake/modules/FindOpenVDB.cmake :159

foreach(COMPONENT ${OpenVDB_FIND_COMPONENTS})

facebookresearch/habitat-sim src/cmake/FindMagnum.cmake :244

foreach(_magnum_component ${Magnum_FIND_COMPONENTS})

harfang3d/harfang3d harfang/cmake/FindOpenGLES3.cmake :12

foreach(minor_version "2" "1" "")

anhttran/3dmm_basic lib/3rdParty/Eigen_old/bench/btl/CMakeLists.txt :53

foreach(_current_var ${ARGN})

cadaver/turso3d ThirdParty/SDL/CMakeLists.txt :1013

foreach(math_fn isinf isnan)

wrld3d/wrld-example-app android/CMakeLists.txt :74

foreach(header ${headers})

qxiaofan/awesome-orb-slam3-3dvisioncraft-version Examples/ROS/ORB_SLAM3/build/gtest/gtest/CMakeFiles/gtest.dir/cmake_clean.cmake :8

foreach(lang CXX)

Hork-Engine/Hork-Source ThirdParty/ozz/build-utils/cmake/compiler_settings.cmake :119

foreach(flag ${cxx_all_flags})

STORM-IRIT/Radium-Engine cmake/ListTargets.cmake :16

foreach(target ${current_targets})

fzi-forschungszentrum-informatik/gpu-voxels icmaker/IcMakerMacros.cmake :44

FOREACH(option ${option_names})

RavEngine/RavEngine cmake/rtti.cmake :70

foreach(SUBDIR IN LISTS SUBDIRS)

cnr-isti-vclab/meshlab unsupported/plugins_unsupported/external/CoMISo/cmake/ACGCommon.cmake :370

foreach (_current_FILE ${ARGN})

bmwcarit/ramses cmake/ramses/makeTestFromTarget.cmake :77

foreach(TEST_PLATFORM IN LISTS TEST_PLATFORMS)

zenustech/zeno projects/.unusedTools/cmake/FindOpenVDB.cmake :684

foreach(LIB ${OpenVDB_LIB_COMPONENTS})

pioneerspacesim/pioneer CMakeLists.txt :175

foreach (each IN LISTS ${SRC_FOLDERS})

alex-petrenko/megaverse src/cmake/modules/FindCorrade.cmake :381

foreach(_component ${Corrade_FIND_COMPONENTS})

curv3d/curv extern/googletest/googletest/cmake/internal_utils.cmake :193

foreach (lib "${libs}")

overte-org/overte cmake/macros/GenerateQrc.cmake :14

foreach(FILENAME ${FOUND_FILES})

stuntrally/stuntrally cmake/FindPkgMacros.cmake :91

foreach(i ${${PREFIX}})

stuntrally/stuntrally3 CMake/Macros.cmake :97

foreach (file IN LISTS potfiles)

AlizaMedicalImaging/AlizaMS mdcm/Utilities/mdcmjpeg/CMakeLists.txt :7

foreach(p
    CMP0042
    CMP0063)

kokkos/kokkos algorithms/unit_tests/CMakeLists.txt :142

foreach(Name StdAlgorithmsCommon StdAlgorithmsTeamInclusiveScan StdAlgorithmsTeamTransformInclusiveScan)

alpaka-group/alpaka cmake/addLibrary.cmake :23

foreach(_file ${ARGN})

eclipse-ecal/ecal thirdparty/cmakefunctions/cmake_functions/protoc_functions/protoc_generate_python.cmake :97

foreach(directory ${RELATIVE_DIRECTORY_LIST})

nextcloud/desktop cmake/modules/DeployQt5.cmake :278

foreach(found_plugin ${pluginlist})

CNES/MAJA Documentation/UserManual/CMakeLists.txt :73

foreach(dir in ${ARGV})

KjellKod/g3log Build.cmake :63

foreach(CompilerFlag ${CompilerFlags})

ANTsX/ANTs SuperBuild.cmake :290

foreach(arg ${${CMAKE_PROJECT_NAME}_SUPERBUILD_EP_ARGS})

AcademySoftwareFoundation/OpenShadingLanguage src/cmake/cuda_macros.cmake :213

foreach ( shadeops_src ${input_srcs} )

etternagame/etterna extern/curl/CMakeLists.txt :1106

foreach(CURL_TEST HAVE_FSETXATTR_5 HAVE_FSETXATTR_6)

dpaulat/supercell-wx external/qt6ct.cmake :16

foreach(item IN ITEMS MAJOR MINOR)

NREL/OpenStudio ProjectMacros.cmake :987

foreach(SRC ${SRCS})

TheAlgorithms/C-Plus-Plus geometry/CMakeLists.txt :7

foreach( testsourcefile ${APP_SOURCES} )

supercollider/supercollider server/plugins/CMakeLists.txt :253

foreach(ugen ${uiugens})

Morwenn/cpp-sort cmake/Findcodecov.cmake :37

foreach (TNAME ${ARGV})

stack-of-tasks/pinocchio unittest/CMakeLists.txt :13

foreach(ARG ${ARGN})

Kitware/kwiver CMake/utils/kwiver-utils-msvc.cmake :38

foreach(line ${contents})

RSIA-LIESMARS-WHU/LSHBOX include/eigen/doc/snippets/CMakeLists.txt :5

foreach(snippet_src ${snippets_SRCS})

hust-diangroup/ns3-ai protobuf-generate.cmake :99

foreach(_proto ${protobuf_generate_PROTOS})

nojhan/paradiseo deprecated/eo/doc/CMakeLists.txt :14

FOREACH (file ${header_files} ${pdf_files} ${jpg_files})

liminchen/OptCuts ext/libigl/external/cgal/src/CGAL_Project/cmake/modules/CGAL_Macros.cmake :100

foreach( flag ${source_list} )

NGSolve/ngsolve cmake/SuperBuild.cmake :47

foreach(varname ${ARGN})

wpilibsuite/allwpilib wpilibcExamples/CMakeLists.txt :56

foreach(template ${TEMPLATES})

KhronosGroup/Vulkan-Samples bldsys/cmake/utils.cmake :35

foreach(FILE_NAME ${DIR_FILES})

SCOREC/core cmake/FindSimModSuite.cmake :128

foreach(version RANGE
      ${MAX_SIM_PARASOLID_VERSION}
      ${MIN_SIM_PARASOLID_VERSION} -1)

nv-legate/legate src/cmake/Modules/clang_tidy.cmake :189

foreach(src IN LISTS _TIDY_SOURCES)

bareos/bareos core/platforms/debian/CMakeLists.txt :70

foreach(SQLFILE ${SQLFILES})

WerWolv/Fenestra cmake/build_helpers.cmake :441

foreach (library IN LISTS FENESTRA_BUNDLED_IMGUI_LIBRARIES)

maidsafe-archive/MaidSafe cmake_modules/add_gtests.cmake :115

foreach(FileName ${RelativeSourceNames})

MultiMC/Launcher cmake/BundleUtilities.cmake :433

foreach(pr ${prereqs})

PrismLauncher/PrismLauncher cmake/vcpkg-ports/vcpkg-tool-meson/vcpkg_install_meson.cmake :62

foreach(current_lib IN LISTS renamed_libs)

baidu/bigflow cmake/generic.cmake :95

FOREACH(DIR ${Protobuf_IMPORT_DIRS})

facebook/folly build/fbcode_builder/CMake/FBThriftPyLibrary.cmake :34

foreach(service IN LISTS ARG_SERVICES)

facebook/rocksdb CMakeLists.txt :1119

foreach(MK_LIB IN LISTS CMAKE_MATCH_1)

microsoft/DiskANN CMakeLists.txt :168

foreach(POSSIBLE_MKL_INCLUDE_PATH ${POSSIBLE_MKL_INCLUDE_PATHS})

openvinotoolkit/openvino cmake/developer_package/target_flags.cmake :185

foreach(_user_flag IN LISTS _user_cxx_flags)

ezEngine/ezEngine Code/BuildSystem/CMake/ezPlatform.cmake :11

foreach(DETECT_FILE ${DETECT_FILES})

JSBSim-Team/jsbsim CMakeLists.txt :134

foreach(_LIB ${libJSBSim_LINK_LIBRARIES})

x64dbg/x64dbg cmake/deps.cmake :38

foreach(DEP ${DEPS})

gnss-sdr/gnss-sdr cmake/Modules/FindGNURADIO.cmake :104

foreach(libname ${PC_GNURADIO_${EXTVAR}_LIBRARIES})

openthread/openthread third_party/mbedtls/repo/CMakeLists.txt :161

foreach(file IN LISTS files)

JosephP91/curlcpp CMakeScripts/JoinPaths.cmake :13

foreach(current_segment IN LISTS ARGN)

performous/performous cmake/Modules/FindPackageHandleStandardArgs.cmake :508

foreach(comp ${${_NAME}_FIND_COMPONENTS})

CppMicroServices/CppMicroServices compendium/CM/test/CMakeLists.txt :96

foreach(lib_fullpath ${GTEST_BOTH_LIBRARIES})

alexa/avs-device-sdk cmakeBuild/cmake/PrepareInstall.cmake :94

foreach(path IN LISTS path_list)

SsageParuders/Android_Native_Surface my_android_opencv/cmake/copy_files.cmake :59

foreach(id ${${COPYLIST_VAR}})

ossia/score src/player/CMakeLists.txt :24

foreach(plugin ${SCORE_LIBRARIES_LIST})

psi4/psi4 psi4/driver/procrouting/response/CMakeLists.txt :7

foreach(py ${sources})

OpenKneeboard/OpenKneeboard CMakeLists.txt :265

foreach(CHILD IN LISTS SUBDIRS)

chdb-io/chdb contrib/cctz-cmake/CMakeLists.txt :66

foreach(TIMEZONE ${TIMEZONES})

NVIDIA/MatX cmake/rapids-cmake/rapids-cmake/cpm/detail/load_preset_versions.cmake :74

foreach(index RANGE ${package_count})

ethz-adrl/ifopt ifopt_ipopt/cmake/FindIPOPT.cmake :70

foreach(LIB ${IPOPT_DEP})

v6d-io/v6d cmake/GenerateVineyard.cmake :92

foreach(_ext ${vineyard_generate_GENERATE_EXTENSIONS})

IBAMR/IBAMR CMakeLists.txt :1001

FOREACH(_lib ${_dependency_libraries})

skaarj1989/SupernovaEngine modules/RHI/Vulkan/extern/VulkanMemoryAllocator/src/Shaders/CMakeLists.txt :16

foreach(SHADER ${SHADERS})

w111liang222/lidar-slam-detection hardware/gstreamer/plugins/cmake/modules/FindGStreamer.cmake :89

foreach(_component ${GStreamer_FIND_COMPONENTS})

TheAssemblyArmada/Thyme cmake/modules/ClangFormat.cmake :26

foreach(SOURCE_FILE ${ALL_SOURCE_FILES})

NVIDIA/DALI cmake/modules/FindProtobuf.cmake :156

foreach(DIR ${Protobuf_IMPORT_DIRS})