7
0
mirror of https://github.com/Minres/conan-recipes.git synced 2025-07-12 03:53:27 +02:00
Files
conan-recipes/TCC/test_package/conanfile.py
2020-04-06 15:57:54 +02:00

23 lines
582 B
Python

import os
from conans import ConanFile, CMake, tools
class TccTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
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):
os.chdir("bin")
self.run(".%sexample" % os.sep)