opencl to cmakelist
This commit is contained in:
@@ -98,6 +98,20 @@ FetchContent_Declare(
|
|||||||
|
|
||||||
FetchContent_MakeAvailable(flecs doctest glm nlohmann_json glfw imgui imnodes FastNoiseLite)
|
FetchContent_MakeAvailable(flecs doctest glm nlohmann_json glfw imgui imnodes FastNoiseLite)
|
||||||
|
|
||||||
|
# ---- OpenCL (GPU compute backend) -------------------------------------------
|
||||||
|
|
||||||
|
find_package(OpenCL REQUIRED)
|
||||||
|
|
||||||
|
# opencl-clhpp: official Khronos C++ bindings (header-only)
|
||||||
|
FetchContent_Declare(
|
||||||
|
opencl_clhpp
|
||||||
|
GIT_REPOSITORY https://github.com/KhronosGroup/OpenCL-CLHPP.git
|
||||||
|
GIT_TAG v2024.10.24
|
||||||
|
GIT_SHALLOW TRUE
|
||||||
|
)
|
||||||
|
|
||||||
|
FetchContent_MakeAvailable(opencl_clhpp)
|
||||||
|
|
||||||
# ---- Core library ------------------------------------------------------------
|
# ---- Core library ------------------------------------------------------------
|
||||||
|
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
|
|||||||
Reference in New Issue
Block a user