Conan.io package for dlib library
$ pip install conan_package_tools
$ python build.py
$ conan install dlib/19.16.0@a-alaa/stable
$ conan test_package
- 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)
...
- 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 ..