-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
conanfile.py
28 lines (23 loc) · 919 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
27
28
from conans import ConanFile, CMake
class CacheConan(ConanFile):
name = "cache"
version = "0.0.5"
license = "BSD-3-Clause"
author = "Vladimir Petrigo <[email protected]>"
url = "https://github.com/vpetrigo/caches"
description = "C++ LRU/FIFO/LFU Cache implementation"
topics = ("header-only", "cache", "lru-cache", "fifo-cache", "lfu-cache")
exports_sources = "include/*", "CMakeLists.txt", "deps/*", "src/*", "test/*"
no_copy_source = True
settings = "os", "compiler", "build_type", "arch"
# No settings/options are necessary, this is header only
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
self.run(f"ctest -C {self.settings.build_type} -V")
def package(self):
self.copy("*.hpp")
self.copy("LICENSE.md", dst="licenses")
def package_id(self):
self.info.header_only()