-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
46 lines (35 loc) · 869 Bytes
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from conans import CMake, ConanFile
class AdventOfCodeConan(ConanFile):
name = 'advent-of-code'
version = '2021.14'
author = 'svanveen'
default_user = 'svanveen'
default_channel = 'stable'
scm = {
'type': 'git',
'url': 'auto',
'revision': 'auto',
}
generators = 'cmake_find_package'
settings = 'os', 'compiler', 'build_type', 'arch'
default_options = {
'cmake:with_openssl': False
}
build_requires = [
'cmake/[>=3.16]'
]
requires = [
'docopt.cpp/0.6.3',
'gtest/1.10.0',
'range-v3/0.11.0'
]
no_copy_sources = True
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
def deploy(self):
self.copy('*')