Files
conan-center-index/recipes/libpciaccess/all/test_package/conanfile.py
2022-06-14 21:45:00 +02:00

19 lines
442 B
Python

import os
from conan.tools.cmake import CMake
from conans import ConanFile, tools
class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps", "CMakeToolchain"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if not tools.cross_building(self):
self.run("test_package", run_environment=True)