-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
44 lines (37 loc) · 1.21 KB
/
conanfile.py
File metadata and controls
44 lines (37 loc) · 1.21 KB
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
from conan import ConanFile
from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps, cmake_layout
class CoreToolkitConan(ConanFile):
name = "coretoolkit"
version = "1.0.0"
package_type = "static-library"
license = "MIT"
settings = "os", "arch", "compiler", "build_type"
requires = (
"boost/1.88.0",
"onetbb/2021.12.0",
"spdlog/1.14.1",
"nlohmann_json/3.11.3",
)
default_options = {"hwloc/*:shared": True}
exports_sources = "CMakeLists.txt", "include/*", "src/*", "dependencies/*"
def layout(self):
cmake_layout(self)
def generate(self):
CMakeToolchain(self).generate()
CMakeDeps(self).generate()
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
def package_info(self):
self.cpp_info.set_property("cmake_target_name", "coretoolkit::coretoolkit")
self.cpp_info.libs = ["coretoolkit", "mwm_csp", "geogram"]
self.cpp_info.requires = [
"boost::headers",
"onetbb::onetbb",
"spdlog::spdlog",
"nlohmann_json::nlohmann_json",
]