-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconanfile.py
31 lines (27 loc) · 1.1 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, CMake, tools
class EliteConan(ConanFile):
name = "Elite"
version = "0.1.0"
license = "<Put the package license here>"
url = "<Package recipe repository url here, for issues about the package>"
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False]}
default_options = "shared=False", "gtest:shared=False"
generators = "cmake"
build_policy = "missing"
requires = 'gtest/1.8.0@sunxfancy/stable' #, 'llvm/7.0.0@sunxfancy/stable'
exports = "*"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
self.copy("*.h", dst="include", src="include")
self.copy("*.lib", dst="lib", keep_path=False)
self.copy("*.dll", dst="bin", keep_path=False)
self.copy("*.so", dst="lib", keep_path=False)
self.copy("*.dylib", dst="lib", keep_path=False)
self.copy("*.a", dst="lib", keep_path=False)
self.copy("LICENSE", dst=".", keep_path=False)
def package_info(self):
self.cpp_info.libs = [self.name]