KomputeProject / kompute

General purpose GPU compute framework built on Vulkan to support 1000s of cross vendor graphics cards (AMD, Qualcomm, NVIDIA & friends). Blazing fast, mobile-enabled, asynchronous and optimized for advanced GPU data processing usecases. Backed by the Linux Foundation.
http://kompute.cc/
Apache License 2.0
1.88k stars 145 forks source link

Fix cmake installation #335

Closed ToKiNoBug closed 9 months ago

ToKiNoBug commented 9 months ago

Issue https://github.com/KomputeProject/kompute/issues/324 mentioned that installation fails on many platforms because komputeConfigVersion.cmake is missing. I tried and found out that this issue happens on may platforms, (for example, on Windows11 with msvc and clang16, and on archlinux with gcc13 and clang16).

So I add some lines to generate it, and I believe this will fix https://github.com/KomputeProject/kompute/issues/324 .

Header installation is also fixed. An extra install command in src/include/CMakeLists.txt is removed because it requires non-existing directory src/include/logger, but logger headers are in src/include/kompute/logger. This line is redundant because logger headers are already installed with line 30.

install(DIRECTORY kompute DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})