Skip to content

Commit

Permalink
Add info about Conan package to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmhofmann committed May 13, 2018
1 parent e769a59 commit 4be8a07
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
[![Build Status](https://travis-ci.org/kmhofmann/selene.svg?branch=master)](https://travis-ci.org/kmhofmann/selene)
[![Build status](https://ci.appveyor.com/api/projects/status/7usv92g9ot12v656?svg=true)](https://ci.appveyor.com/project/kmhofmann/selene)



**Selene** is a C++14 image representation, processing, and I/O library, focusing on ease of use and a clean, modern,
type-safe API.

Expand Down Expand Up @@ -55,4 +53,18 @@ write_image(to_image_data_view(img_rgba, PixelFormat::RGBA), ImageFormat::PNG,
// Write encoded binary data to disk (or do something else with it...)
write_data_contents("example_out.png", encoded_png_data);
```
```

### Package managed

While building from source "at head" using *CMake* is the recommended way to use
**Selene** (see [Building the library](docs/building.md)), the library is also available as a

* [Conan package](https://bintray.com/kmhofmann/conan-repo/selene%3Aselene) on Bintray.

**Selene**'s own dependencies can be installed using

* [Conan](https://conan.io/) (some)
* [vcpkg](https://github.com/Microsoft/vcpkg) (all)

besides OS level package managers.
3 changes: 3 additions & 0 deletions conan_pkg/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@ def build(self):
cmake.build()
cmake.install()

def package(self):
self.copy("license*", dst="licenses", ignore_case=True, keep_path=False)

def package_info(self):
self.cpp_info.libs = ["selene_base", "selene_img", "selene_io"]
5 changes: 5 additions & 0 deletions conan_pkg/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
project(PackageTest CXX)
cmake_minimum_required(VERSION 3.5)

# https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

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

Expand Down

0 comments on commit 4be8a07

Please sign in to comment.