-
Notifications
You must be signed in to change notification settings - Fork 5
/
conanfile.py
26 lines (21 loc) · 852 Bytes
/
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
from conans import ConanFile, CMake
class CircularBufferConan(ConanFile):
name = "circular_buffer"
version = "0.1.0"
license = "MIT License"
author = "vinit james [email protected]"
url = "https://github.com/vinitjames/circularbuffer"
description = "A simple, general purpose STL style circularbuffer implementation in C++."
topics = ("circularbuffer", "ringbuffer", "conan-recipe", "c++")
exports_sources = "*"
def build(self): # this is not building a library, just tests
cmake = CMake(self)
cmake.configure()
cmake.build()
cmake.test()
def package(self):
print(self.name)
self.copy("{}.h".format(self.name), dst="include", src=".")
self.copy("LICENSE", dst="license", src=".")
def package_info(self):
self.info.header_only()