-
Notifications
You must be signed in to change notification settings - Fork 29
/
conanfile.py
27 lines (23 loc) · 993 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
from conans import ConanFile, CMake
class HelloConan(ConanFile):
name = "libfixkalman"
version = "20161008"
url = "https://github.com/sunsided/libfixkalman.git"
license = "MIT"
author = "Markus Mayer ([email protected])"
requires = "libfixmath/20141230@sunside/stable", "libfixmatrix/20140117@sunside/stable"
generators = "cmake"
settings = "os", "compiler", "build_type", "arch"
exports = "*.c", "*.h", "CMakeLists.txt", "*.rst", "AUTHORS", "LICENSE"
def build(self):
cmake = CMake(self.settings)
self.run('cmake %s %s' % (self.conanfile_directory, cmake.command_line))
self.run("cmake --build . %s" % cmake.build_config)
def package(self):
self.copy("*.h", dst="include")
self.copy("*.c", dst="src")
self.copy("*.lib", dst="lib", src="lib")
self.copy("*.a", dst="lib", src="lib")
def package_info(self):
name = "libfixkalman"
self.cpp_info.libs = ["libfixkalman"]