forked from vpetrigo/caches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
27 lines (22 loc) · 872 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
from conans import ConanFile, CMake
class CacheConan(ConanFile):
name = "cache"
version = "0.0.3"
license = "BSD 3-Clause License"
author = "Vladimir Petrigo <And your email here>"
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")
def package_id(self):
self.info.header_only()