-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconanfile.py
34 lines (27 loc) · 1.12 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
from conan import ConanFile
from conan.tools.cmake import CMake
import os
class GchSmallVectorConan(ConanFile):
name = "small_vector"
author = "Gene Harvey <gharveymn@gmail.com>"
version = "0.9.2"
license = "MIT"
url = "https://github.com/gharveymn/small_vector"
description = "A fully featured single header library implementing a vector container with a small buffer optimization."
topics = "header-only", "small-vector", "container"
generators = "CMakeToolchain"
exports_sources = "CMakeLists.txt", "LICENSE", "source/*"
no_copy_source = True
def build(self):
CMake(self).configure({
"GCH_SMALL_VECTOR_ENABLE_TESTS": "OFF",
"GCH_SMALL_VECTOR_ENABLE_BENCHMARKS": "OFF",
})
def package(self):
CMake(self).install(build_type="Release")
def package_info(self):
self.cpp_info.bindirs = []
self.cpp_info.libdirs = []
# Use the existing CMake configuration files.
self.cpp_info.set_property("cmake_find_mode", "none")
self.cpp_info.builddirs.append(os.path.join("lib", "cmake", "small_vector"))