conanfile.py 781 Bytes
Newer Older
Phuntsok Drak-pa's avatar
Phuntsok Drak-pa committed
1
from conans import CMake, ConanFile
Phuntsok Drak-pa's avatar
Phuntsok Drak-pa committed
2 3


Phuntsok Drak-pa's avatar
Phuntsok Drak-pa committed
4
class GeneticImageConan(ConanFile):
Phuntsok Drak-pa's avatar
Phuntsok Drak-pa committed
5
    settings = "os", "compiler", "build_type", "arch"
Phuntsok Drak-pa's avatar
Phuntsok Drak-pa committed
6 7 8 9 10 11 12 13 14
    generators = "cmake", "compiler_args", "txt"

    def requirements(self):
        self.requires('opencv/4.0.1@conan/stable')
        self.requires("boost_program_options/1.69.0@bincrafters/stable")
        self.requires("spdlog/1.3.1@bincrafters/stable")
        self.options['opencv'].gtk = None
        self.options['opencv'].tiff = False
        self.options['opencv'].openexr = False
Phuntsok Drak-pa's avatar
Phuntsok Drak-pa committed
15 16 17 18 19 20 21 22 23

    def imports(self):
        self.copy("*.dll", dst="bin", src="bin")  # From bin to bin
        self.copy("*.dylib*", dst="bin", src="lib")  # From lib to bin

    def build(self):
        cmake = CMake(self)
        cmake.configure()
        cmake.build()