-
Notifications
You must be signed in to change notification settings - Fork 3
/
conanfile.py
34 lines (27 loc) · 867 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
from conans import ConanFile, CMake
class CppMLConan(ConanFile):
name = "CppML"
version = "0.0.0"
license = "MIT"
author = "Ziga Sajovic -- [email protected]"
url = "https://github.com/ZigaSajovic/CppML"
description = "A Meta Language for C++."
topics = ("metaprogramming", "meta-programming",
"template-meta-programming", "cplusplus-library")
exports_sources = "include/*", "CMakeLists.txt", "cmake/CppMLConfig.cmake.in", "LICENSE"
no_copy_source = True
def _configure_cmake(self):
cmake = CMake(self)
cmake.configure()
return cmake
def build(self):
cmake = self._configure_cmake()
cmake.build()
def test(self):
cmake = self._configure_cmake()
cmake.test()
def package(self):
cmake = self._configure_cmake()
cmake.install()
def package_id(self):
self.info.header_only()