Skip to content

Instantly share code, notes, and snippets.

@T1T4N
Created January 17, 2018 14:58
Show Gist options
  • Save T1T4N/530b66a696bdee743dc404f420b40cdd to your computer and use it in GitHub Desktop.
Save T1T4N/530b66a696bdee743dc404f420b40cdd to your computer and use it in GitHub Desktop.
Conan test_package example qt conanfile
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