Files
Catch2/conanfile.py
T

31 lines
997 B
Python
Raw Permalink Normal View History

2017-06-23 10:34:56 -03:00
#!/usr/bin/env python
from conans import ConanFile, CMake
2017-06-23 10:34:56 -03:00
class CatchConan(ConanFile):
2018-11-16 09:45:07 -02:00
name = "Catch2"
2017-06-23 10:34:56 -03:00
description = "A modern, C++-native, header-only, framework for unit-tests, TDD and BDD"
2018-11-16 09:45:07 -02:00
topics = ("conan", "catch2", "header-only", "unit-test", "tdd", "bdd")
url = "https://github.com/catchorg/Catch2"
2018-11-16 09:45:07 -02:00
homepage = url
license = "BSL-1.0"
exports = "LICENSE.txt"
exports_sources = ("single_include/*", "CMakeLists.txt", "CMake/*", "contrib/*")
generators = "cmake"
2017-06-23 10:34:56 -03:00
def package(self):
cmake = CMake(self)
cmake.definitions["BUILD_TESTING"] = "OFF"
cmake.definitions["CATCH_INSTALL_DOCS"] = "OFF"
cmake.definitions["CATCH_INSTALL_HELPERS"] = "ON"
cmake.configure(build_folder='build')
cmake.install()
self.copy(pattern="LICENSE.txt", dst="licenses")
2017-10-31 15:17:21 +01:00
2017-08-26 13:53:03 -04:00
def package_id(self):
self.info.header_only()
2020-04-07 12:19:25 +01:00
def package_info(self):
self.cpp_info.builddirs.append("lib/cmake/Catch2")