-
Notifications
You must be signed in to change notification settings - Fork 273
Description
I'm totaly new here. I coud add this repo into my repo as a submodule.
I also could build on Linux and Windows.
I've two thing I don't know and I don't find the right answer.
1.) In the past OpenCL 1.2 was only a header file. What is this package?
cmake path/to/opencl/app -DOpenCLHeaders_ROOT=/chosen/install/prefix
I added it in the main file and fails? Where should is put this? When the package is created? What kindof package?
Why a package helps me? I want to use for many things OpenCL?
2.) The package doesn't find:
cmake_minimum_required(VERSION 3.0)
cmake_policy(VERSION 3.0...3.18.4)
project(proj)
add_executable(app main.cpp)
find_package(OpenCLHeaders REQUIRED)
target_link_libraries(app PRIVATE OpenCL::Headers)
Is this repo create a package for easy usage and I just to add it to the target? I'm big fun of OpenCL and I want to understand it. :-)
Could you be so kind give an example?
Thanks,