-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
25 lines (21 loc) · 820 Bytes
/
conanfile.py
File metadata and controls
25 lines (21 loc) · 820 Bytes
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
from conans import ConanFile, CMake, tools
class OrmConan(ConanFile):
name = "Orm"
version = "0.1"
license = "MIT"
url = "https://github.com/Techpaw/Orm.git"
description = "Experimental ORM for cpp projects (now supports Postgres only)"
options = {"shared": [True, False]}
default_options = "shared=False"
generators = "cmake"
exports_sources = "include/*"
no_copy_source = True
requires = "boost_lexical_cast/1.65.1@bincrafters/stable", \
"libpqxx/6.2.0@trigger-happy/testing"
def source(self):
self.run("git clone https://github.com/Techpaw/Orm.git")
self.run("cd orm && git checkout stable")
def package(self):
self.copy("*.hpp", dst="include", src="orm/include")
def package_id(self):
self.info.header_only()