2017-06-23 15:34:56 +02:00
|
|
|
#!/usr/bin/env python
|
2018-06-19 07:14:46 +02:00
|
|
|
from conans import ConanFile, CMake
|
2017-06-23 15:34:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
class CatchConan(ConanFile):
|
|
|
|
name = "Catch"
|
2018-07-23 10:12:15 +02:00
|
|
|
version = "2.3.0"
|
2017-06-23 15:34:56 +02:00
|
|
|
description = "A modern, C++-native, header-only, framework for unit-tests, TDD and BDD"
|
|
|
|
author = "philsquared"
|
|
|
|
generators = "cmake"
|
2018-06-19 07:14:46 +02:00
|
|
|
# Only needed until conan 1.5 is released
|
|
|
|
settings = "compiler", "arch"
|
|
|
|
exports_sources = "single_include/*", "CMakeLists.txt", "CMake/catch2.pc.in", "LICENSE.txt"
|
2018-06-11 10:48:10 +02:00
|
|
|
url = "https://github.com/catchorg/Catch2"
|
2017-06-28 17:44:46 +02:00
|
|
|
license = "Boost Software License - Version 1.0. http://www.boost.org/LICENSE_1_0.txt"
|
2017-06-23 15:34:56 +02:00
|
|
|
|
2018-06-19 07:14:46 +02:00
|
|
|
def build(self):
|
|
|
|
pass
|
|
|
|
|
2017-06-23 15:34:56 +02:00
|
|
|
def package(self):
|
2018-06-19 07:14:46 +02:00
|
|
|
cmake = CMake(self)
|
|
|
|
cmake.definitions["BUILD_TESTING"] = "OFF"
|
|
|
|
cmake.definitions["CATCH_INSTALL_DOCS"] = "OFF"
|
2018-07-01 16:21:12 +02:00
|
|
|
cmake.definitions["CATCH_INSTALL_HELPERS"] = "ON"
|
2018-06-19 07:14:46 +02:00
|
|
|
cmake.configure()
|
|
|
|
cmake.install()
|
|
|
|
|
|
|
|
self.copy(pattern="LICENSE.txt", dst="licenses")
|
2017-10-31 15:17:21 +01:00
|
|
|
|
2017-08-26 19:53:03 +02:00
|
|
|
def package_id(self):
|
2018-06-19 07:14:46 +02:00
|
|
|
self.info.header_only()
|