mirror of
https://github.com/luxfi/intx.git
synced 2026-10-30 16:22:26 +00:00
27 lines
643 B
Python
27 lines
643 B
Python
import os
|
|
|
|
from conan import ConanFile
|
|
from conan.tools.cmake import CMake, cmake_layout
|
|
from conan.tools.build import can_run
|
|
|
|
|
|
class IntxTestConan(ConanFile):
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
generators = "CMakeDeps", "CMakeToolchain"
|
|
|
|
def requirements(self):
|
|
self.requires(self.tested_reference_str)
|
|
|
|
def build(self):
|
|
cmake = CMake(self)
|
|
cmake.configure()
|
|
cmake.build()
|
|
|
|
def layout(self):
|
|
cmake_layout(self)
|
|
|
|
def test(self):
|
|
if can_run(self):
|
|
cmd = os.path.join(self.cpp.build.bindir, "use_intx")
|
|
self.run(cmd, env="conanrun")
|