-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
31 lines (26 loc) · 1.03 KB
/
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
from conans import ConanFile
from conans import CMake
class Cis1ProtoUtils(ConanFile):
name = "cis1_proto_utils"
version = "0.0.8"
description = "Shared classes for cis1 protocols."
author = "MokinIA <[email protected]>"
generators = "cmake"
settings = "os", "arch", "compiler", "build_type"
exports = []
exports_sources = ["CMakeLists.txt", "include/*", "src/*"]
requires = ("gtest/1.8.1@bincrafters/stable",
"boost_system/1.69.0@bincrafters/stable",
"boost_asio/1.69.0@bincrafters/stable",
"rapidjson/1.1.0@bincrafters/stable",
"cis1_tpl/0.0.3@tomsksoft/cis1")
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
self.copy("*.h", dst="include", src="include")
self.copy("libcis1_proto_utils.a", dst="lib", src="lib")
self.copy("libcis1_proto_utils.lib", dst="lib", src="lib")
def package_info(self):
self.cpp_info.libs = ["cis1_proto_utils"]