See also: https://docs.conan.io/2/tutorial/consuming_packages/build_simple_cmake_project.html for the original tutorial
[requires]
# You may have multiple lines like the one below, if you have many dependencies.
$library/$version
$library/$version@$owner/$branch
[generators]
CMakeDeps
CMakeToolchain
$ conan --version
Conan version 2.7.0
$ conan profile show
Host profile:
[settings]
arch=armv8
build_type=Release
compiler=apple-clang
compiler.cppstd=20
compiler.libcxx=libc++
compiler.version=15
os=Macos
Build profile:
[settings]
arch=armv8
build_type=Release
compiler=apple-clang
compiler.cppstd=20
compiler.libcxx=libc++
compiler.version=15
os=Macos
$ cmake --version
cmake version 3.30.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ gcc --version
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ g++ --version
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
编译
$ ./build.sh
运行
$ ./run.sh