blob: b05584025ed4a83afd3ad271e94130d4aa0422d5 [file] [log] [blame]
Uilian Ries6234e3d2017-06-23 10:34:56 -03001#!/usr/bin/env python
Paul le Rouxb957eb42018-06-19 07:14:46 +02002from conans import ConanFile, CMake
Uilian Ries6234e3d2017-06-23 10:34:56 -03003
4
5class CatchConan(ConanFile):
6 name = "Catch"
Martin Hořeňovskýd2a130f2018-06-06 23:16:06 +02007 version = "2.2.3"
Uilian Ries6234e3d2017-06-23 10:34:56 -03008 description = "A modern, C++-native, header-only, framework for unit-tests, TDD and BDD"
9 author = "philsquared"
10 generators = "cmake"
Paul le Rouxb957eb42018-06-19 07:14:46 +020011 # Only needed until conan 1.5 is released
12 settings = "compiler", "arch"
13 exports_sources = "single_include/*", "CMakeLists.txt", "CMake/catch2.pc.in", "LICENSE.txt"
Martin Hořeňovský44722f92018-06-11 10:48:10 +020014 url = "https://github.com/catchorg/Catch2"
Phil Nash0270afb2017-06-28 16:44:46 +010015 license = "Boost Software License - Version 1.0. http://www.boost.org/LICENSE_1_0.txt"
Uilian Ries6234e3d2017-06-23 10:34:56 -030016
Paul le Rouxb957eb42018-06-19 07:14:46 +020017 def build(self):
18 pass
19
Uilian Ries6234e3d2017-06-23 10:34:56 -030020 def package(self):
Paul le Rouxb957eb42018-06-19 07:14:46 +020021 cmake = CMake(self)
22 cmake.definitions["BUILD_TESTING"] = "OFF"
23 cmake.definitions["CATCH_INSTALL_DOCS"] = "OFF"
24 cmake.configure()
25 cmake.install()
26
27 self.copy(pattern="LICENSE.txt", dst="licenses")
Martin Hořeňovskýae210202017-10-31 15:17:21 +010028
solvingjeea9e1e2017-08-26 13:53:03 -040029 def package_id(self):
Paul le Rouxb957eb42018-06-19 07:14:46 +020030 self.info.header_only()