conanfile.py 542 B

12345678910111213141516171819
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import os
  4. from conans import ConanFile, CMake
  5. class TestPackageConan(ConanFile):
  6. settings = "os", "compiler", "build_type", "arch"
  7. generators = "cmake"
  8. def build(self):
  9. cmake = CMake(self)
  10. cmake.configure()
  11. cmake.build()
  12. def test(self):
  13. assert os.path.isfile(os.path.join(self.deps_cpp_info["civetweb"].rootpath, "licenses", "LICENSE.md"))
  14. bin_path = os.path.join("bin", "test_package")
  15. self.run(bin_path, run_environment=True)