1from conans import ConanFile, tools, CMake 2import os 3 4 5class OpenCLHeadersConan(ConanFile): 6 name = "opencl-headers" 7 version = "20190502" 8 license = "Apache-2.0" 9 author = "Khronos Group <webmaster@khronos.org>" 10 url = "https://github.com/KhronosGroup/OpenCL-ICD-Loader" 11 description = "Khronos OpenCL Headers" 12 topics = ("khronos", "opencl", "headers") 13 exports_sources = "CMakeLists.txt", "CL/*" 14 no_copy_source = True 15 16 def build(self): 17 cmake = CMake(self) 18 cmake.configure() 19 cmake.build() 20 cmake.install() 21 22 def package_id(self): 23 self.info.header_only()