CONAN-CLI:
- create CMakeLists.txt
- append conanfile.txt
- run: conan profile list & conan profile path default (profile default existed)
or conan profile detect --force (first conan)
- run: conan install . --output-folder=build --build=missing --profile=default
- modify CMakeLists.txt
Windows:
- cd build
#assuming Visual Studio 17 2022 is your VS version and that it matches your default profile
- cmake .. -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
... -- Configuring done -- Generating done
- cmake --build . --config Release
... webcrab.vcxproj -> D:\Projects\webcrab\build\Release\webcrab.exe
- Release\webcrab.exe
Linux and macOS:
- cd build
- cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
... -- Configuring done -- Generating done
- cmake --build .
... [100%] Built target webcrab
- ./webcrab