-
Notifications
You must be signed in to change notification settings - Fork 2
/
conanfile.py
26 lines (23 loc) · 1.01 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
from conans import ConanFile, CMake, tools
from conans.tools import download, unzip
import os
class EcConan(ConanFile):
name = "ec"
version = "1.3.0"
description = "Conan package for ec."
url = "https://github.com/acdemiralp/ec"
license = "MIT"
settings = "arch", "build_type", "compiler", "os"
generators = "cmake"
requires = "boost/1.66.0@conan/stable"
default_options = "boost:header_only=True"
def source(self):
zip_name = "%s.zip" % self.version
download ("%s/archive/%s" % (self.url, zip_name), zip_name, verify=False)
unzip (zip_name)
os.unlink(zip_name)
def package(self):
include_folder = "%s-%s/include" % (self.name, self.version)
self.copy("*.h" , dst="include", src=include_folder)
self.copy("*.hpp", dst="include", src=include_folder)
self.copy("*.inl", dst="include", src=include_folder)