diff --git a/README.md b/README.md index 874f80e..cc00cda 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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); -``` \ No newline at end of file +``` + +### 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. \ No newline at end of file diff --git a/conan_pkg/conanfile.py b/conan_pkg/conanfile.py index 34e6c81..ce38079 100644 --- a/conan_pkg/conanfile.py +++ b/conan_pkg/conanfile.py @@ -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"] diff --git a/conan_pkg/test_package/CMakeLists.txt b/conan_pkg/test_package/CMakeLists.txt index e89e420..6b910f2 100644 --- a/conan_pkg/test_package/CMakeLists.txt +++ b/conan_pkg/test_package/CMakeLists.txt @@ -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()