-
Notifications
You must be signed in to change notification settings - Fork 5
/
conanfile.py
27 lines (22 loc) · 963 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 PlumaConan(ConanFile):
name = "Pluma"
version = "1.1"
url = "https://github.com/monsdar/pluma-cmake"
license = "GNU LESSER GENERAL PUBLIC LICENSE Version 3"
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
exports = "*"
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("*.hpp", dst="include/Pluma", src="Pluma-1.1/include/Pluma")
self.copy("*.inl", dst="include/Pluma", src="Pluma-1.1/include/Pluma")
self.copy("*.lib", dst="lib", keep_path=False)
self.copy("*.a", dst="lib", keep_path=False)
def package_info(self):
self.cpp_info.libs = ["Pluma"]
if self.settings.os == "Linux":
self.cpp_info.libs.append("dl")