-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconanfile.py
executable file
·31 lines (26 loc) · 921 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
from conans import ConanFile
class DiffMatchPatchCpp(ConanFile):
# Note: options are copied from CMake boolean options.
# When turned off, CMake sometimes passes them as empty strings.
options = {}
# "cpp_starter_use_imgui": ["ON", "OFF", ""],
# "cpp_starter_use_sdl": ["ON", "OFF", ""]
#}
name = "diff-match-patch-cpp"
version = "1.0"
requires = (
"catch2/2.13.7",
#"docopt.cpp/0.6.2",
"fmt/8.0.1",
#"spdlog/1.9.2",
)
generators = "cmake", "gcc", "txt", "cmake_find_package"
#def requirements(self):
# if self.options.cpp_starter_use_imgui == "ON":
# self.requires("imgui-sfml/2.1@bincrafters/stable")
# if self.options.cpp_starter_use_sdl == "ON":
# self.requires("sdl2/2.0.10@bincrafters/stable")
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()