12345678910111213141516171819 |
- from conans import ConanFile, CMake, tools
- import os
- class TestPackageConan(ConanFile):
- settings = "os", "arch", "compiler", "build_type"
- generators = "cmake_find_package"
- def build(self):
- cmake = CMake(self)
- cmake.configure()
- cmake.build()
- def test(self):
- if not tools.cross_building(self):
- bin_path = os.path.join(os.getcwd(), "test_package")
- self.run(bin_path, run_environment=True)
|