Skip to content

Patistar/ConanTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install fmtlib with Conan according to the official getting started guide: https://docs.conan.io/en/latest/getting_started.html#a-timer-using-poco-libraries

  1. Create projects directory
mkdir project && cd project
  1. Create your projects cpp files
touch main.cpp
  1. Create conanfile.txt
[requires]
fmt/5.2.0@bincrafters/stable

[generators]
cmake
  1. Create your CMakeLists.txt
project(ConanTest)
cmake_minimum_required(VERSION 3.12.0)
add_definitions("-std=c++11")

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()

add_executable(main main.cpp)
target_link_libraries(main ${CONAN_LIBS})
  1. Setup build directory
mkdir build && cd build
  1. Install Conan dependencies
conan install ..
  1. Build missing depenencies If depencies are not available in the official repository, they need to be build.
conan install --build missing ..
  1. Building the project
ccmake ..
cmake --build .
  1. Run the executable

About

Test the C++ Conan package manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published