https://github.com/philsquared/Catch
Raw File
Tip revision: 27dca5d9c973d63567158ad1267c4f8311a45577 authored by David Seifert on 30 January 2018, 10:13:53 UTC
Install Catch only when run as standalone project
Tip revision: 27dca5d
conanfile.py
#!/usr/bin/env python
from conans import ConanFile


class CatchConan(ConanFile):
    name = "Catch"
    version = "2.1.1"
    description = "A modern, C++-native, header-only, framework for unit-tests, TDD and BDD"
    author = "philsquared"
    generators = "cmake"
    exports_sources = "single_include/*"
    url = "https://github.com/philsquared/Catch"
    license = "Boost Software License - Version 1.0. http://www.boost.org/LICENSE_1_0.txt"

    def package(self):
        self.copy(pattern="catch.hpp", src="single_include", dst="include")

    def package_id(self):
            self.info.header_only()
back to top