cmake option examples

Signatures

option(<variable> "<help_text>" [value])

Examples

nCine/nCine cmake/ncine_options.cmake :4

option(NCINE_INSTALL_DEV_SUPPORT "Install files to support development" ON)

timi-liuliang/echo CMakeLists.txt :24

OPTION(ECHO_GAME_SOURCE "With game source" FALSE)

abellgithub/delaunator-cpp cmake/bench.cmake :5

option(BENCHMARK_10M "Run against 100M points" OFF)

AtomicGameEngine/AtomicGameEngine Source/Atomic/CMakeLists.txt :147

option (ATOMIC_D3D9SHADERCOMPILER_DISABLE "Remove D3DCompiler.dll dependency. Use for binaries that never initialize the Direct3D9 graphics subsystem." OFF)

u3d-community/U3D cmake/Modules/UrhoCommon.cmake :241

option (URHO3D_SKIP_INSTALL "Disable Sdk Installation" TRUE)

IFL-CAMP/supra CMakeLists.txt :41

OPTION(SUPRA_DEVICE_ULTRASOUND_SIM "Build Ultrasound Test"             ON)

microsoft/scenepic CMakeLists.txt :32

option( SCENEPIC_FORMAT "Specifies whether to enable the ability to format code via clang-format" OFF )

mgerhardy/caveexpress CMakeLists.txt :11

option(USE_CCACHE "Use ccache" ON)

Oslandia/SFCGAL CMakeLists.txt :146

option( SFCGAL_WARNING_AS_ERROR "fail the build on warnings" OFF )

zer011b/fdtd3d CMakeLists.txt :28

option(CUDA_ENABLED "Cuda support enabled" OFF)

alicevision/AliceVision src/CMakeLists.txt :57

option(ALICEVISION_BUILD_COVERAGE "Enable code coverage generation (gcc only)" OFF)

gwaldron/osgearth CMakeLists.txt :77

option(OSGEARTH_BUILD_TOOLS "Build the osgEarth command-line tools" ON)

f3d-app/f3d plugins/CMakeLists.txt :6

option(F3D_PLUGIN_BUILD_USD "Universal Scene Description plugin (USD files)" OFF)

prusa3d/PrusaSlicer deps/CMakeLists.txt :30

option(BUILD_SHARED_LIBS "Build shared libraries instead of static (experimental)" OFF)

FreeCAD/FreeCAD cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake :30

option(FREECAD_USE_QT_FILEDIALOG "Use Qt's file dialog instead of the native one." ON)

OGRECave/ogre CMakeLists.txt :173

option(OGRE_BUILD_MSVC_ZM "Add /Zm256 compiler option to fix PCH errors on Visual Studio 2013" TRUE)

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

option(ANKI_BUILD_SANDBOX "Build sandbox application" ON)

prusa3d/Prusa-Firmware CMakeLists.txt :8

OPTION(ENFORCE_VERSION_MATCH "Enforce checking that configuration.h matches any parsed git tags" OFF)

bambulab/BambuStudio CMakeLists.txt :37

option(SLIC3R_PCH               "Use precompiled headers" 1)

SoftFever/OrcaSlicer CMakeLists.txt :98

option(SLIC3R_MSVC_COMPILE_PARALLEL "Compile on Visual Studio in parallel" 1)

facebookresearch/habitat-sim src/CMakeLists.txt :34

option(BUILD_GUI_VIEWERS "Whether to build GUI viewer utility binary" OFF)

fverdoja/Fast-3D-Pointcloud-Segmentation CMakeLists.txt :10

option(USE_CATKIN "Use Catkin to enable ROS support" ON)

anhttran/3dmm_basic lib/3rdParty/Eigen/CMakeLists.txt :109

option(EIGEN_SPLIT_LARGE_TESTS "Split large tests into smaller executables" ON)

DragonJoker/Castor3D CMakeLists.txt :113

option( CASTOR_USE_DEPS_WXWIDGETS "Use wxWidgets from dependencies submodule instead of system/vcpkg one" OFF )

cadaver/turso3d ThirdParty/SDL/src/hidapi/CMakeLists.txt :50

option(BUILD_SHARED_LIBS "Build shared version of the libraries, otherwise build statically" ON)

wrld3d/wrld-example-app ios/CMakeLists.txt :179

option(AUTOMATED_SCREENSHOTS "Build for screenshot automation." OFF)

JeremyBYU/polylidar CMakeLists.txt :42

option(PL_BUILD_FASTGA "PL - Build FastGA with Example" OFF)

Universite-Gustave-Eiffel/I-Simpa CMakeLists.txt :42

option(SKIPISIMPA "skip-gui" FALSE)

Hork-Engine/Hork-Source CMakeLists.txt :5

option(HK_BUILD_SAMPLES "Enable samples" ON)

STORM-IRIT/Radium-Engine CMakeLists.txt :45

option(
    RADIUM_ENABLE_EXAMPLES
    "Enable examples app build. To install examples, build explicitly the target Install_RadiumExamples."
    OFF
)

RavEngine/RavEngine deps/assimp/CMakeLists.txt :94

OPTION( ASSIMP_ANDROID_JNIIOSYSTEM
  "Android JNI IOSystem support is active"
  OFF
)

cnr-isti-vclab/meshlab src/external/newuoa.cmake :5

option(MESHLAB_ALLOW_BUNDLED_NEWUOA "Allow use of bundled newuoa source" ON)

bmwcarit/ramses CMakeLists.txt :42

option(ramses-sdk_ENABLE_WINDOW_TYPE_ANDROID            "Enable building for Android window" OFF)

zenustech/zeno projects/Audio/aquila/CMakeLists.txt :17

option(Aquila_BUILD_EXAMPLES "Build example programs?" OFF)

pioneerspacesim/pioneer CMakeLists.txt :62

option(USE_SSE42 "Compile for SSE4.2 compatible microarchitectures (enables optimizations)" ${PIONEER_TARGET_INTEL})

stuntrally/stuntrally CMakeLists.txt :24

option(BUILD_TRANSL_TOOL      "Build the tool for translation updating, it creates .pot"  ON)

AlizaMedicalImaging/AlizaMS CMakeLists.txt :91

option(ALIZA_DISABLE_SIMDMATH "Disable SSE/SSE2" OFF)

PDAL/PDAL cmake/options.cmake :52

option(BUILD_PLUGIN_RIVLIB
    "Choose if RiVLib support should be built" FALSE)

alpaka-group/alpaka example/complex/CMakeLists.txt :24

option(USE_ALPAKA_SOURCE_TREE "Use alpaka's source tree instead of an alpaka installation" OFF)

eclipse-ecal/ecal ecal/ecal-core-options.cmake :9

option(ECAL_CORE_BUILD_SAMPLES                           "Build the eCAL samples"                                                                                ON)

meganz/MEGAcmd build/cmake/modules/megacmd_options.cmake :26

option(USE_PDFIUM "Used to create previews/thumbnails for PDF files" OFF)

LLNL/zfp CMakeLists.txt :151

option(ZFP_WITH_CACHE_FAST_HASH
  "Use a faster but more collision prone hash function" OFF)

nextcloud/desktop CMakeLists.txt :164

option(TOKEN_AUTH_ONLY "TOKEN_AUTH_ONLY" OFF)

CNES/MAJA Packaging/CMakeLists.txt :39

option(WITH_VALIDATION  "Build validation package." OFF)

ZDoom/gzdoom CMakeLists.txt :56

option( FORCE_CROSSCOMPILE "Turn on cross compiling." NO )

KjellKod/g3log Options.cmake :32

option(G3_IOS_LIB
      "iOS version of library." OFF)

svkaiser/Doom64EX CMakeLists.txt :33

option(ENABLE_SYSTEM_FLUIDSYNTH "Link with system-wide fluidsynth and not fluidsynth-lite" OFF)

ANTsX/ANTs ANTS.cmake :16

option( ${PROJECT_NAME}_BUILD_DISTRIBUTE "Remove '-g#####' from version. ( for official distribution only )" OFF )

AcademySoftwareFoundation/OpenShadingLanguage CMakeLists.txt :112

option (VERBOSE "Print lots of messages while compiling" OFF)

hydrogen-music/hydrogen CMakeLists.txt :82

option(WANT_SHARED      "Build the core library shared." OFF)

etternagame/etterna CMake/.legacy/DefineOptions.cmake :13

option(WITH_FULL_RELEASE "Build as a proper, full release." OFF)

NREL/OpenStudio CMakeLists.txt :289

option(BUILD_CSHARP_BINDINGS "Build CSharp bindings" OFF)

OpenChemistry/avogadroapp CMakeLists.txt :67

option(Avogadro_ENABLE_RPC "Enable RPC server" ON)

KDE/digikam core/CMakeLists.txt :104

option(ENABLE_MEDIAPLAYER                "Build digiKam with Media Player support (default=OFF)"                              OFF)

pcb9382/FaceAlgorithm include/Eigen/CMakeLists.txt :181

option(EIGEN_TEST_SSSE3 "Enable/Disable SSSE3 in tests/examples" OFF)

supercollider/supercollider CMakeLists.txt :179

option(SC_MEMORY_DEBUGGING "Build sclang&scsynth for memory debugging (disable memory pools).")

PathPlanning/ORCA-algorithm CMakeLists.txt :5

option(FULL_OUTPUT_FLAG "Enables/disables full output to stdout about reading xml files" OFF)

stack-of-tasks/pinocchio CMakeLists.txt :154

option(INITIALIZE_WITH_NAN "Initialize Eigen entries with NaN" OFF)

gadomski/cpd vendor/googletest-1.14.0/CMakeLists.txt :21

option(GTEST_HAS_ABSL "Use Abseil and RE2. Requires Abseil and RE2 to be separately added to the build." OFF)

Kitware/kwiver CMakeLists.txt :180

OPTION(KWIVER_SYMLINK_PYTHON "Symlink python files instead of copying." OFF)

RSIA-LIESMARS-WHU/LSHBOX include/eigen/CMakeLists.txt :181

option(EIGEN_TEST_SSSE3 "Enable/Disable SSSE3 in tests/examples" OFF)

shapelets/khiva CMakeLists.txt :39

option(KHIVA_BUILD_DOCUMENTATION "Create and install the HTML based API documentation (requires Doxygen, GraphViz and Sphinx)" ON)

thestk/stk CMakeLists.txt :34

option(ENABLE_DS "Enable DirectSound API support (windows only)" ON)

mohabouje/eDSP CMakeLists.txt :24

option(USE_LIBFFTW "Use the library FFTW to encode/decode audio files" ON)

liminchen/OptCuts CMakeLists.txt :15

option(LIBIGL_WITH_EMBREE            "Use Embree"         OFF)

NGSolve/ngsolve CMakeLists.txt :14

option( USE_PARDISO      "enable pardiso sparse direct solver")

kahypar/mt-kahypar CMakeLists.txt :97

option(KAHYPAR_DISABLE_PARLAY "Remove the parlay dependency. Might impact running time of deterministic mode on some instances." OFF)

wpilibsuite/allwpilib CMakeLists.txt :67

option(WITH_JAVA "Include Java and JNI in the build" OFF)

KhronosGroup/Vulkan-Samples third_party/CMakeLists.txt :349

option(GLFW_BUILD_TESTS OFF)

SCOREC/core gmi_sim/CMakeLists.txt :11

option(SIM_ACIS "Enable Acis interface" OFF)

nv-legate/legate src/cmake/Modules/legate_options.cmake :123

option(Legion_USE_GASNETEX_WRAPPER "Enable gasnetex wrapper" OFF)

rheit/zdoom CMakeLists.txt :154

option( NO_OPENAL "Disable OpenAL sound support" OFF )

bareos/bareos cmake/BareosSetVariableDefaults.cmake :411

option(ndmp "Enable NDMP support" ON)

adepierre/SniffCraft CMakeLists.txt :8

option(SNIFFCRAFT_WITH_GUI "Activate for GUI support" ON)

WerWolv/Fenestra lib/third_party/nlohmann_json/CMakeLists.txt :41

option(JSON_CI                             "Enable CI build targets." OFF)

maidsafe-archive/MaidSafe CMakeLists.txt :155

option(HAVE_LIBC++ "If ON, '-stdlib=libc++' is added to the compile and link flags" ON)

anonbeat/guayadeque CMakeLists.txt :62

OPTION( ENABLE_IPOD "Enable iPod support by including libgpod support" ON )

MultiMC/Launcher CMakeLists.txt :24

option(Launcher_RUN_CLANG_TIDY "Run clang-tidy with the compiler." OFF)

PrismLauncher/PrismLauncher CMakeLists.txt :465

option(NBT_BUILD_SHARED "Build NBT shared library" OFF)

PolyMC/PolyMC CMakeLists.txt :313

option(NBT_USE_ZLIB "Build NBT library with zlib support" OFF)

RichieSams/FiberTaskingLib CMakeLists.txt :29

option(FTL_BUILD_TESTS "Build FiberTaskingLib tests" ON)

bluetiger9/SmtpClient-for-Qt CMakeLists.txt :8

option(BUILD_DEMOS "builds demos" ON)

r1delta/r1delta overlays/ports/l8w8jwt/CMakeLists.txt :71

option(ENABLE_TESTING "Build MbedTLS tests." OFF)

NVIDIA/nvshmem perftest/CMakeLists.txt :45

option(NVSHMEM_TEST_STATIC_LIB "Force tests to link only against the combined nvshmem.a binary" $ENV{NVSHMEM_TEST_STATIC_LIB})

ml-explore/mlx CMakeLists.txt :33

option(MLX_BUILD_BENCHMARKS "Build benchmarks for mlx" OFF)

mariadb-corporation/MaxScale cmake/defaults.cmake :32

option(WITH_VALGRIND "Use valgrind in the systemd service" OFF)

facebook/rocksdb CMakeLists.txt :130

option(WITH_GFLAGS "build with GFlags" OFF)

lightspark/lightspark src/3rdparty/imgui/examples/example_glfw_vulkan/CMakeLists.txt :19

option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" OFF)

gnss-sdr/gnss-sdr CMakeLists.txt :41

option(ENABLE_PLUTOSDR "Enable the use of ADALM-PLUTO Evaluation Boards (Analog Devices Inc.), requires gr-iio" OFF)

GPUOpen-Archive/Anvil CMakeLists.txt :5

option(ANVIL_INCLUDE_XCB_WINDOW_SYSTEM_SUPPORT     "Includes XCB window system support (Linux builds only)" ON)

openthread/openthread etc/cmake/options.cmake :33

option(OT_FTD "enable FTD" ON)

alexa/avs-device-sdk cmakeBuild/cmake/Bluetooth.cmake :14

option(BLUETOOTH_ENABLED "Enable Bluetooth" OFF)

SsageParuders/Android_Native_Surface my_android_opencv/cmake/FindCUDA.cmake :433

option(CUDA_64_BIT_DEVICE_CODE "Compile device code in 64 bit mode" ${CUDA_64_BIT_DEVICE_CODE_DEFAULT})

ossia/score cmake/ScoreConfiguration.cmake :27

option(SCORE_FHS_BUILD "For installing in Linux distros /usr hierarchy" OFF)

psi4/psi4 CMakeLists.txt :114

option(ENABLE_ambit "Enables the ambit tensor library" OFF)

baoxingsong/AnchorWave googletest/googletest/CMakeLists.txt :14

option(
  gtest_force_shared_crt
  "Use shared (DLL) run-time lib even when Google Test is built as static lib."
  OFF)

lizardfs/lizardfs CMakeLists.txt :20

option(ENABLE_LIGHTMFS          "Enable light version of LizardFS"                       OFF)

ZTzTopia/GTInternalAndroid src/CMakeLists.txt :3

option(KITTYMEMORY_DEBUG "Enable KittyMemory debug log" ON)

chdb-io/chdb CMakeLists.txt :6

option(FAIL_ON_UNSUPPORTED_OPTIONS_COMBINATION
   "Stop/Fail CMake configuration if some ENABLE_XXX option is defined (either ON or OFF)
   but is not possible to satisfy" ON)

NVIDIA/MatX CMakeLists.txt :70

option(MATX_EN_CUTENSOR OFF)