mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
Merge pull request #198 from javierjeronimo/master
Add compatibility with conan.io
This commit is contained in:
commit
c550c2bab0
3
.gitignore
vendored
3
.gitignore
vendored
@ -33,3 +33,6 @@ build
|
|||||||
|
|
||||||
.directory
|
.directory
|
||||||
crow_all.h
|
crow_all.h
|
||||||
|
|
||||||
|
# conan.io
|
||||||
|
build/
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
project (crow_all)
|
project (crow_all)
|
||||||
|
|
||||||
|
if(EXISTS "${CMAKE_BINARY_DIR}/conanbuildinfo.cmake")
|
||||||
|
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
||||||
|
conan_basic_setup()
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
|
||||||
find_package(Tcmalloc)
|
find_package(Tcmalloc)
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
|
28
conanfile.py
Normal file
28
conanfile.py
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
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"
|
||||||
|
generators = "cmake"
|
||||||
|
settings = "os", "compiler", "build_type", "arch"
|
||||||
|
|
||||||
|
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")
|
Loading…
Reference in New Issue
Block a user