omaralvarez / conan_dlib

Conan recipe for dlib library http://dlib.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Download Build Status

conan_dlib

Conan.io package for dlib library

Build packages

$ pip install conan_package_tools
$ python build.py

Reuse the packages

Basic setup

$ conan install dlib/19.19@omaralvarez/stable

Package basic test

$ conan test_package

Example usage in a CMake-based project

Conan and CMake files

  • A sample from conanfile.txt in the root directory:
[requires]
dlib/19.19@omaralvarez/stable
...

[generators]
cmake
...

[options]
dlib:enable_blas=False
dlib:enable_lapack=False
...
  • The CMakeLists.txt at the root directory:
cmake_minimum_required(VERSION 3.8)
project(project_name C CXX)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)
...
  • The CMakeLists.txt of a dependent target:
...
add_executable(example example.cpp)
target_link_libraries(example CONAN_PKG::dlib)
...

Running Conan and CMake

  • First, add new remote pointing to the repository:
conan remote add omaralvarez https://api.bintray.com/conan/omaralvarez/public-conan
  • Change directory to the build location and run Conan installation:
conan install .. -s build_type=Release --build=missing

where the .. points to the project root at the parent directory.

  • Run CMake:
cmake ..

About

Conan recipe for dlib library http://dlib.net

License:GNU General Public License v3.0


Languages

Language:Python 49.1%Language:C++ 39.8%Language:Shell 5.9%Language:CMake 3.7%Language:Batchfile 1.5%