-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
44 lines (41 loc) · 1.42 KB
/
Copy pathconanfile.py
File metadata and controls
44 lines (41 loc) · 1.42 KB
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
from conans import ConanFile, CMake
class JustAnotherInterviewTask(ConanFile):
name = 'JustAnotherInterviewTask'
version = '0.1'
settings = 'os', 'arch', 'compiler', 'build_type'
requires = "Qt/5.9.7@bincrafters/stable", "Catch2/2.11.1@catchorg/stable"
generators = "cmake_find_package"
exports = ["LICENSE.md"]
exports_sources = ["src/*","CMakeLists.txt"]
default_options = {
"qt:shared": True,
"qt:commercial": False,
"qt:opengl": "no",
"qt:with_glib": False,
"qt:openssl": False,
"qt:with_pcre2": False,
"qt:with_doubleconversion": True,
"qt:with_freetype": False,
"qt:with_fontconfig": False,
"qt:with_icu": False,
"qt:with_harfbuzz": False,
"qt:with_libjpeg": True,
"qt:with_libpng": True,
"qt:with_sqlite3": False,
"qt:with_mysql": False,
"qt:with_pq": False,
"qt:with_odbc": False,
"qt:with_sdl2": False,
"qt:with_libalsa": False,
"qt:with_mesa": False,
"qt:with_openal": False,
"qt:with_zstd": False
}
def imports(self):
self.copy("*.dll", "", "bin")
self.copy("*.dylib", "", "lib")
def build(self):
cmake = CMake(self, generator='Ninja')
cmake.configure()
cmake.build()
cmake.test() # If you dont have any tests this will fail!