Introduction
Cheatsheet
Training Courses
Install
Getting Started
Using packages
Creating Packages
Uploading Packages
Developing packages
Package apps and devtools
Versioning
Mastering Conan
Systems and cross building
Extending Conan
Integrations
Configuration
Howtos
Reference
Commands
conanfile.txt
conanfile.py
Attributes
Methods
tools
conan.tools.cmake
conan.tools.gnu
conan.tools.google
conan.tools.meson
conan.tools.microsoft
conan.tools.qbs
conan.tools.env
conan.tools.files
conan.tools.layout
Dependencies
Python requires
Output and Running
Generators
Profiles
Build helpers
Tools
Configuration files
Environment variables
Hooks
CONAN_V2_MODE
Videos and links
FAQ
Glossary
Changelog
Road to Conan 2.0
Sign up for release updates:
conan
Docs
»
Reference
»
conanfile.py
»
tools
»
conan.tools.cmake
Edit on GitHub
conan.tools.cmake
ΒΆ
Warning
These tools are
experimental
and subject to breaking changes.
CMakeDeps
configurations
build_context_activated
build_context_suffix
build_context_build_modules
Properties
CMakeToolchain
constructor
preprocessor_definitions
variables
Generators
Using a custom toolchain file
Using the toolchain in developer flow
Extending and customizing CMakeToolchain
Cross building
CMake
constructor
configure()
build()
install()
test()
conf
Version: 1.39
Versions
1.58
1.57
1.56
1.55
1.54
1.53
1.52
1.51
1.50
1.49
1.48
1.47
1.46
1.45
1.44
1.43
1.42
1.41
1.40
1.39
1.38
1.37
1.36
1.35
1.34
1.33
1.32
1.31
1.30
1.29
1.28
1.27
1.26
1.25
1.24
1.23
1.22
1.21
1.20
1.19
1.18
1.17
1.16
1.15
1.14
1.13
1.12
1.11
1.10
1.9
1.8
1.7
1.6
1.5
1.4
1.3
2.0
latest
Downloads
PDF