-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
conanfile.py
54 lines (41 loc) · 1.08 KB
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python3
from conans import ConanFile, CMake
class BackportConan(ConanFile):
# Package Info
name = "Backport"
version = "1.2.0"
description = "Modern C++ backported to C++11"
url = "https://github.com/bitwizeshift/bpstd"
author = "Matthew Rodusek <matthew.rodusek@gmail.com>"
license = "MIT"
generators = "cmake"
# Sources
exports = ("LICENSE")
exports_sources = ("cmake/*",
"include/*",
"test/*",
"CMakeLists.txt",
"LICENSE")
# Settings
options = {}
default_options = {}
build_requires = ("Catch2/2.7.1@catchorg/stable")
def source(self):
pass
def build(self):
pass
def test(self):
pass
def package(self):
cmake = CMake(self)
cmake.definitions["BACKPORT_COMPILE_UNIT_TESTS"] = "ON"
cmake.configure()
# Compile and run the unit tests
cmake.build()
cmake.build(target="test")
cmake.install()
self.copy(pattern="LICENSE", dst="licenses")
return
def package_id(self):
self.info.header_only()
return