Created
January 17, 2018 14:58
-
-
Save T1T4N/530b66a696bdee743dc404f420b40cdd to your computer and use it in GitHub Desktop.
Conan test_package example qt conanfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from conans import ConanFile, tools | |
import os | |
class MyaccountTestConan(ConanFile): | |
settings = "os", "compiler", "build_type", "arch", "os_build", "arch_build" | |
generators = "qmake" | |
exports="*" | |
def build(self): | |
self.run('echo %s' % os.environ["QT_ROOT"]) | |
self.run('qmake %s/example.pro' % self.source_folder) | |
self.run('make') | |
def imports(self): | |
self.copy("*.dll", dst="bin", src="bin") | |
self.copy("*.dylib*", dst="bin", src="lib") | |
self.copy('*.so*', dst='bin', src='lib') | |
def test(self): | |
if not tools.cross_building(self.settings): | |
self.run(".%sexample" % os.sep) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment