opencl to cmakelist

This commit is contained in:
Connor
2026-02-24 20:14:54 +09:00
parent bee5aa0e8f
commit a47dff77f7

View File

@@ -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