From 2eef052145b7b307d0caaaf3a5c83e9c394baff2 Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Wed, 23 Feb 2022 12:43:18 +0300 Subject: [PATCH] chore(cpp-app): Add instructions to build app for MacOS --- README.md | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bf6e854a1d..a9bdb613b7 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Dev Docs: [https://hackmd.io/@status-desktop/B1naRjxh_/https%3A%2F%2Fhackmd.io%2 # CPP App -### Setup: +### Setup `Linux`: 1. conancenter Execute `conan remote list`. It should return this line among the results. ``` @@ -28,10 +28,39 @@ Execute this to update the profile: conan profile update settings.compiler.libcxx=libstdc++11 default ``` -### Buid & test & run: +3. Install dependencies: + ``` cd build conan install .. -s build_type=Release --build=missing +``` + +### Setup `OS X`: + +1. Create `conan` profile `~/.conan/profiles/clang`: +``` +[settings] +compiler=apple-clang +compiler.version=12.0 +compiler.libcxx=libc++ +arch=x86_64 +os=Macos +build_type=Release + +[env] +CC=/usr/bin/clang +CXX=/usr/bin/clang++ +``` + +2. Install dependecies: + +``` +cd build +conan install .. --profile=clang --build=missing +``` + +### Buid & test & run: +``` conan build .. ctest -VV -C Release ./status-desktop