Crow/conanfile.py
Javier Jerónimo Suárez 2877991498 Requirements
2016-11-19 12:07:14 +01:00

31 lines
950 B
Python

from conans import ConanFile, CMake
class CrowConan(ConanFile):
name = "Crow"
version = "0.1"
url = "https://github.com/javierjeronimo/crow"
license = "see https://github.com/ipkn/crow/blob/master/LICENSE"
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
requires = (("Boost/1.60.0@lasote/stable"),
("OpenSSL/1.0.2i@lasote/stable"))
# No exports necessary
def source(self):
# this will create a hello subfolder, take it into account
self.run("git clone https://github.com/javierjeronimo/crow.git")
def build(self):
cmake = CMake(self.settings)
self.run('cmake %s/crow %s' % (self.conanfile_directory, cmake.command_line))
self.run("cmake --build . %s" % cmake.build_config)
self.run("make")
def package(self):
self.copy("*.h", dst="include", src="amalgamate")
def package_info(self):
self.cpp_info.libs = ["crow"]