KhronosGroup / OpenCL-SDK

OpenCL SDK
Apache License 2.0
579 stars 120 forks source link

Comprehensive CMake Package Config support #7

Closed MathiasMagnus closed 4 years ago

MathiasMagnus commented 4 years ago

This PR is part of a set of PRs implementing CMake Package Config detection support for all OpenCL repos independently and as part of the OpenCL SDK as well.

Related PRs:

I tried keeping attribution where applicable with parallel PRs were in place.

Features in this PR:

add_executable(${SAMPLE_NAME} ${SAMPLE_NAME}.cpp)

target_link_libraries(${SAMPLE_NAME} PRIVATE OpenCL::ICD )

target_compile_definitions(${SAMPLE_NAME} PRIVATE CL_TARGET_OPENCL_VERSION=120 )

KhronosWebservices commented 4 years ago

Apologies again @MathiasMagnus would you please re-open this against 'main'.