A-Alaa / conan_dlib

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status 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.16.0@a-alaa/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.16.0@a-alaa/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 a-alaa https://api.bintray.com/conan/a-alaa/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 48.9%Language:C++ 40.0%Language:Shell 5.9%Language:CMake 3.7%Language:Batchfile 1.5%