-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
43 lines (36 loc) · 1.43 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
38
39
40
41
42
43
from conan import ConanFile
from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps, cmake_layout
required_conan_version = ">=2.0"
class Astrosight(ConanFile):
name = "astrosight"
version = "0.1.0"
license = "Apache-2.0"
author = "Austin Lake ([email protected])"
url = "https://github.com/austinlucaslake/astrosight"
description = "Image processing application for astrophotography."
topics = ("astrophotography", "image processing")
settings = "arch", "compiler", "build_type", "os"
exports_sources = "CMakeLists.txt", "src/*", "include/*"
def requirements(self):
self.requires("argparse/3.0")
self.requires("libraw/0.21.1")
self.requires("opencv/4.8.1")
self.requires("qt/6.6.0")
self.requires("freetype/2.13.2", override=True)
def build_requirements(self):
self.tool_requires("cmake/[>3.23.5]")
self.test_requires("cppcheck/2.12.1")
self.test_requires("uncrustify/0.78.0")
def generate(self):
toolchain = CMakeToolchain(self)
toolchain.generate()
dependancies = CMakeDeps(self)
dependancies.check_components_exist = True
dependancies.generate()
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
# cmake.test()
def layout(self):
cmake_layout(self, src_folder="src", build_folder="build")