conanfile.py 463 B

12345678910111213141516171819
  1. from conans import ConanFile, CMake, tools
  2. import os
  3. class TestPackageConan(ConanFile):
  4. settings = "os", "arch", "compiler", "build_type"
  5. generators = "cmake_find_package"
  6. def build(self):
  7. cmake = CMake(self)
  8. cmake.configure()
  9. cmake.build()
  10. def test(self):
  11. if not tools.cross_building(self):
  12. bin_path = os.path.join(os.getcwd(), "test_package")
  13. self.run(bin_path, run_environment=True)