better conanfile

This commit is contained in:
Phuntsok Drak-pa 2019-05-05 18:43:09 +02:00
parent ea4072482e
commit 3347f1cfe8

View File

@ -3,8 +3,15 @@ from conans import CMake, ConanFile
class GeneticImageConan(ConanFile): class GeneticImageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch" settings = "os", "compiler", "build_type", "arch"
requires = "opencv/4.0.1@conan/stable", "boost_program_options/1.69.0@bincrafters/stable", "spdlog/1.3.1@bincrafters/stable" generators = "cmake", "compiler_args", "txt"
generators = "cmake", "gcc", "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
def imports(self): def imports(self):
self.copy("*.dll", dst="bin", src="bin") # From bin to bin self.copy("*.dll", dst="bin", src="bin") # From bin to bin