I have used this command to full deploy in my project
conan install . --output-folder=dependencies --deployer=full_deploy --generator=CMakeToolchain pause
The problem is that it generates a CMakePresets.json and a CMakeUserPresets.json but I ALREADY HAVE ONE IN MY PROJECT
I want to only use the conan_toolchain.cmake that it makes to find the conan dependencies for my cmake build
The solution that worked for me
I had to specify arch as x86 (we are building 32 bit, and default from conan is 64 bit)
Additionally, I had to use both CMakeDeps and CMakeToolkit
I only had toolkit
After which it made the correct files which I can find with find_package()
Step 1: Add what open source dependency we need in conanfile.py (for example, from Conan Central) conanfile.py Example:
Step 2: Then consume it in the target CMakeLists.txt you want CMakeLists.txt Example: