From 2c3e50f78e7bda357af2785e09779d580cd56282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Mon, 7 Apr 2025 12:10:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D1=80=D0=B0=D0=B1=D0=BE=D1=87?= =?UTF-8?q?=D0=B0=D1=8F=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit f760c9af61cb22e237bc74d9713172c462556c82) --- CMakeLists.txt | 3 +++ README.md | 3 ++- conanfile.txt | 6 ++++++ profiles/debug_profile | 9 +++++++++ profiles/release_profile | 9 +++++++++ 5 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 conanfile.txt create mode 100644 profiles/debug_profile create mode 100644 profiles/release_profile diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ddd9a7..5a1a90c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,9 @@ set(CMAKE_CXX_STANDARD 23) if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") include(${CMAKE_CURRENT_SOURCE_DIR}/cmake-build-debug/conan_toolchain.cmake) endif () +if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") + include(${CMAKE_CURRENT_SOURCE_DIR}/cmake-build-release/conan_toolchain.cmake) +endif () find_package(Boost REQUIRED) diff --git a/README.md b/README.md index 2293ae2..2f84a35 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ -conan install . --output-folder=./build/conan --build=missing \ No newline at end of file +conan install . --output-folder=./build --build=missing +conan install . -pr /abs/path/to/myprofile diff --git a/conanfile.txt b/conanfile.txt new file mode 100644 index 0000000..acba59b --- /dev/null +++ b/conanfile.txt @@ -0,0 +1,6 @@ +[requires] +boost/1.87.0 + +[generators] +CMakeDeps +CMakeToolchain \ No newline at end of file diff --git a/profiles/debug_profile b/profiles/debug_profile new file mode 100644 index 0000000..6517f75 --- /dev/null +++ b/profiles/debug_profile @@ -0,0 +1,9 @@ +[settings] +arch=x86_64 +build_type=Debug +compiler=msvc +compiler.cppstd=23 +compiler.runtime=dynamic +compiler.runtime_type=Debug +compiler.version=194 +os=Windows diff --git a/profiles/release_profile b/profiles/release_profile new file mode 100644 index 0000000..b3a8fed --- /dev/null +++ b/profiles/release_profile @@ -0,0 +1,9 @@ +[settings] +arch=x86_64 +build_type=Release +compiler=msvc +compiler.cppstd=23 +compiler.runtime=dynamic +compiler.runtime_type=Release +compiler.version=194 +os=Windows