万象云档 本次搜索耗时 3.283 秒,为您找到 145 个相关结果.
  • Exporting and Installing

    [TOC] Adding FeaturesPosition independent codeLittle librariesInterprocedural optimization Adding Features There are lots of compiler and linker settings. When you need to add s...
  • Installing

    [TOC] CUDAAdding the CUDA LanguageVariables for CUDAAdding a library / executableTargeting architecturesWorking with targetsUseful variablesNote that FindCUDA is deprecated, but f...
  • Exporting

    [TOC] OpenMP OpenMP OpenMP support was drastically improved in CMake 3.9+. The Modern(TM) way to add OpenMP to a target is: find_package(OpenMP)if(OpenMP_CXX_FOUND) target_l...
  • Packaging

    [TOC] Boost library Boost library The Boost library is included in the find packages that CMake provides, but it has a couple of oddities in how it works. See FindBoost for a fu...
  • Looking for Libraries (Packages)

    [TOC] MPI MPI To add MPI, like OpenMP, you’ll be best off with CMake 3.9+. find_package(MPI REQUIRED)message(STATUS "Run: ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPR...
  • CUDA

    [TOC] CCache and UtilitiesCCacheUtilitiesClang tidyInclude what you useLink what you useClang-format CCache and Utilities Over the versions, common utilities that help you write...
  • OpenMP

    [TOC] Useful Modules«module:CMakeDependentOption»«module:CMakePrintHelpers»«module:CheckCXXCompilerFlag»«module:WriteCompilerDetectionHeader»«command:try_compile»/«command:try_run...
  • Boost

    [TOC] ROOTFinding ROOTThe right way (Targets)The old global wayComponentsDictionary generation Using Old ROOT ROOT ROOT is a C++ Toolkit for High Energy Physics. It is huge. The...
  • MPI

    [TOC] Supporting IDEsFolders for targetsFolders for filesRunning with an IDE Supporting IDEs In general, IDEs are already supported by a standard CMake project. There are just a...
  • ROOT

    [TOC] A Simple ROOT Projectexamples/root-usefile/CMakeLists.txtexamples/root-usefile/SimpleExample.cxx A Simple ROOT Project This is a minimal example of a ROOT project using th...