Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/linux-china/conan-cmake-demo

Demo Application with CMake and Conan
https://github.com/linux-china/conan-cmake-demo

cmake conan

Last synced: 6 days ago
JSON representation

Demo Application with CMake and Conan

Awesome Lists containing this project

README

        

C++ Application with CMake and Conan
=====================================

# How to use

* Install Conan plugin in Clion: https://plugins.jetbrains.com/plugin/11956-conan
* create "CMAKE_BINARY_DIR" directory, such as "_build", for Clion, default is cmake-build-debug
* cd "CMAKE_BINARY_DIR" and execute following code

```bash
conan install . -s build_type=Debug --install-folder=cmake-build-debug
cd cmake-build-debug
cmake ..
make
```

# Attention

* C++ Standard Library, Choose options as following:

* libstdc++ (GNU C++ standard library)
* libc++ (LLVM C++ standard library with C++ 11 support)

* Compiler and compiler.version. For mac, please choose apple-clang and 7.3 version for most Conan packages

# Conan Repositories

* https://bintray.com/conan/conan-center
* https://bintray.com/pocoproject/conan
* https://bintray.com/bincrafters/public-conan

# Reference

* Conan Document: http://conanio.readthedocs.io/
* Conan CLion Plugin: https://blog.jetbrains.com/clion/2019/05/getting-started-with-the-conan-clion-plugin/
* Conan integrated with CMake: https://conan-docs.readthedocs.io/en/feature-cmake-toolchain-file/integrations/cmake.html
* C++ Package Management With Conan: Introduction: https://medium.com/@ilyas.hamadouche/c-package-management-with-conan-introduction-8c7bd928c009