forked from qedalab/vcd_assert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
executable file
·37 lines (29 loc) · 1.04 KB
/
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
from conans import ConanFile, CMake
class VCDAssertConan(ConanFile):
name = "libparse"
version = "master"
settings = "os", "compiler", "build_type", "arch"
exports_sources = (
"include/*",
"src/*",
"tests/*",
"CMakeLists.txt"
)
generators = "cmake_paths"
def build(self):
cmake = CMake(self)
cmake.definitions["BUILD_TESTS"] = "ON"
cmake.definitions["BUILD_DOCS"] = "ON"
cmake.definitions["CMAKE_TOOLCHAIN_FILE"] = "conan_paths.cmake"
cmake.definitions["RUN_ALL_TESTS"] = "ON"
cmake.configure()
cmake.build()
cmake.test(["--", "CTEST_OUTPUT_ON_FAILURE=TRUE"])
def package(self):
pass
def build_requirements(self):
self.build_requires("pegtl/2.7.0@taocpp/stable")
self.build_requires("range-v3/0.3.6@pleroux0/stable")
self.build_requires("fmt/5.1.0@bincrafters/stable")
self.build_requires("Catch/2.2.3@pleroux0/stable")
self.build_requires("CLI11/1.6.1@cliutils/stable")