-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
32 lines (26 loc) · 1010 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
28
29
30
31
32
from conans import ConanFile, CMake
class KdTreePpConan(ConanFile):
name = "kdtreepp"
version = "1.0.0"
url = "https://github.com/jhurliman/kdtreepp"
homepage = "https://github.com/jhurliman/kdtreepp"
description = "A C++ k-d tree implementation"
license = ("MIT")
topics = ("data-structures", "spatial", "eigen")
settings = "os", "compiler", "build_type", "arch"
requires = "eigen/3.3.9"
build_requires = "catch2/2.13.4", "benchmark/1.5.2"
generators = "cmake"
def source(self):
self.run("git clone https://github.com/jhurliman/kdtreepp.git")
def build(self):
cmake = CMake(self)
cmake.configure(source_folder="kdtreepp")
cmake.build()
def package(self):
cmake = CMake(self)
cmake.configure(source_folder=self._source_subfolder)
cmake.install()
def package_info(self):
self.cpp_info.names["cmake_find_package"] = "kdtreepp"
self.cpp_info.names["pkg_config"] = "kdtreepp"