conanfile.py 792 B

123456789101112131415161718192021222324252627282930313233
  1. # Range v3 library
  2. #
  3. # Copyright Luis Martinez de Bartolome Izquierdo 2016
  4. #
  5. # Use, modification and distribution is subject to the
  6. # Boost Software License, Version 1.0. (See accompanying
  7. # file LICENSE_1_0.txt or copy at
  8. # http://www.boost.org/LICENSE_1_0.txt)
  9. #
  10. # Project home: https://github.com/ericniebler/range-v3
  11. #
  12. from conans import ConanFile, CMake
  13. import os
  14. class Rangev3TestConan(ConanFile):
  15. settings = "os", "compiler", "build_type", "arch"
  16. generators = "cmake"
  17. def build(self):
  18. cmake = CMake(self)
  19. cmake.configure()
  20. cmake.build()
  21. def imports(self):
  22. self.copy("*.dll", "bin", "bin")
  23. self.copy("*.dylib", "bin", "bin")
  24. def test(self):
  25. os.chdir("bin")
  26. self.run(".%srange-v3-example" % os.sep)