-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconanfile.py
More file actions
57 lines (45 loc) · 1.67 KB
/
conanfile.py
File metadata and controls
57 lines (45 loc) · 1.67 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
45
46
47
48
49
50
51
52
53
54
55
56
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps
from conan.tools.scm import Git
class QuickVizConan(ConanFile):
name = "quickviz"
version = "0.6.5"
license = "MIT"
author = "<Ruixiang Du> <ruixiang.du@gmail.com>"
url = "https://github.com/rxdu/quickviz"
description = "C++ libraries for creating data visualization and basic UI applications in robotics"
topics = ("imgui", "implot", "cairo", "visualization", "gui")
settings = "os", "compiler", "build_type", "arch"
default_settings = {"build_type": "Release"}
options = {"shared": [True, False]}
default_options = {"shared": False}
def export(self):
git = Git(self, self.recipe_folder)
git.coordinates_to_conandata()
def source(self):
git = Git(self)
git.checkout_from_conandata_coordinates()
git.run("submodule update --init --recursive")
def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC
def layout(self):
cmake_layout(self)
def generate(self):
deps = CMakeDeps(self)
deps.generate()
tc = CMakeToolchain(self)
tc.variables["BUILD_TESTING"] = "OFF"
if self.options.shared:
tc.variables["CMAKE_POSITION_INDEPENDENT_CODE"] = "ON"
tc.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.builddirs = ["lib/cmake"]
self.cpp_info.set_property("cmake_find_mode", "none")