-
Notifications
You must be signed in to change notification settings - Fork 1
/
conanfile.py
45 lines (38 loc) · 1.39 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
35
36
37
38
39
40
41
42
43
44
45
from conans import ConanFile, CMake, tools
class IsSkeletonsGrouperServiceConan(ConanFile):
name = "is-skeletons-grouper"
version = "0.0.3"
license = "MIT"
url = "https://github.com/labviros/is-skeletons-grouper"
description = ""
settings = "os", "compiler", "build_type", "arch"
options = {
"shared": [True, False],
"fPIC": [True, False],
"build_tests": [True, False],
}
default_options = "shared=False", "fPIC=True", "build_tests=False"
generators = "cmake", "cmake_find_package", "cmake_paths", "virtualrunenv"
requires = (
"is-msgs/1.1.10@is/stable",
"is-wire/1.1.5@is/stable",
"zipkin-cpp-opentracing/0.3.1@is/stable",
"armadillo/8.500.1@is/stable",
"boost/1.66.0@conan/stable",
)
exports_sources = "*"
def build_requirements(self):
pass
def configure(self):
self.options["armadillo"].ARMA_USE_LAPACK = True
self.options["armadillo"].ARMA_USE_BLAS = True
def build(self):
cmake = CMake(self, generator='Ninja')
cmake.definitions["CMAKE_POSITION_INDEPENDENT_CODE"] = self.options.fPIC
cmake.definitions["enable_tests"] = self.options.build_tests
cmake.configure()
cmake.build()
if self.options.build_tests:
cmake.test()
def package_info(self):
self.cpp_info.libs = ["is-skeletons-grouper"]