diff --git a/CMakeLists.txt b/CMakeLists.txt index d4488e2..d7afbfe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,11 +30,10 @@ find_package(OpenGL REQUIRED) add_executable(simpleGL simpleGL.cu) target_link_libraries(simpleGL GL GLU glut) -set(VULKANSDK = /kws_space/vulkansdk_1.2.135.0/x86_64) +#set(VULKANSDK = /mnt/ata-Linux/pop_os/vulkan_sdk/1.2.189.0/x86_64) +find_package(Vulkan REQUIRED) add_executable(simpleVulkan vulkanCUDASinewave.cu) -target_include_directories(simpleVulkan PRIVATE "${VULKANSDK}/include") -target_link_directories(simpleVulkan PRIVATE "${VULKANSDK}/lib") -target_link_libraries(simpleVulkan vulkan glfw) +target_link_libraries(simpleVulkan Vulkan::Vulkan glfw) find_library(CUDART_LIBRARY cudart ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES}) message(STATUS "CUDART_LIBRARY = ${CUDART_LIBRARY}")