mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-16 19:41:57 +00:00
19 lines
442 B
Python
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)
|