mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 03:43:28 +01:00
ac0a83a35d
- Apply new conventions introduced on Conan 1.8 - Removed outdated settings - Update license to follow SPDX format Closes #926 Closes #943
28 lines
889 B
Python
28 lines
889 B
Python
#!/usr/bin/env python
|
|
from conans import ConanFile, CMake
|
|
|
|
|
|
class CatchConan(ConanFile):
|
|
name = "Catch2"
|
|
description = "A modern, C++-native, header-only, framework for unit-tests, TDD and BDD"
|
|
topics = ("conan", "catch2", "header-only", "unit-test", "tdd", "bdd")
|
|
url = "https://github.com/catchorg/Catch2"
|
|
homepage = url
|
|
license = "BSL-1.0"
|
|
exports = "LICENSE.txt"
|
|
exports_sources = ("single_include/*", "CMakeLists.txt", "CMake/*", "contrib/*")
|
|
generators = "cmake"
|
|
|
|
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()
|
|
cmake.install()
|
|
|
|
self.copy(pattern="LICENSE.txt", dst="licenses")
|
|
|
|
def package_id(self):
|
|
self.info.header_only()
|