Skip to content

Commit 2841b49

Browse files
committed
added conanfile.py
1 parent 52e7382 commit 2841b49

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

conanfile.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from conans import ConanFile, CMake
2+
3+
4+
class CircularBufferConan(ConanFile):
5+
name = "circular_buffer"
6+
version = "0.0.1"
7+
license = "MIT License"
8+
author = "vinit james [email protected]"
9+
url = "https://github.com/vinitjames/circularbuffer"
10+
description = "A simple, general purpose STL style circularbuffer implementation in C++."
11+
topics = ("circularbuffer", "ringbuffer", "conan-recipe", "c++")
12+
exports_sources = "*"
13+
14+
def build(self): # this is not building a library, just tests
15+
cmake = CMake(self)
16+
cmake.configure()
17+
cmake.build()
18+
cmake.test()
19+
20+
def package(self):
21+
print(self.name)
22+
self.copy("{}.h".format(self.name), dst="include", src=".")
23+
self.copy("LICENSE", dst="license", src=".")
24+
25+
def package_info(self):
26+
self.info.header_only()

0 commit comments

Comments
 (0)