mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
Trying to add support for conan.io
This commit is contained in:
parent
990a8a34d0
commit
bcf943b9b1
23
conanfile.py
Normal file
23
conanfile.py
Normal file
@ -0,0 +1,23 @@
|
||||
from conans import ConanFile, CMake
|
||||
|
||||
class CrowConan(ConanFile):
|
||||
name = "Crow"
|
||||
version = "0.1"
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
# 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" % 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"]
|
||||
|
Loading…
Reference in New Issue
Block a user