From 310607ac05e846d630b93a072fad5d15aab6a8ce Mon Sep 17 00:00:00 2001 From: hporro Date: Fri, 3 May 2024 00:13:26 +0200 Subject: [PATCH 1/2] small fix in order to incudle the library using fetch_content --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea4b0bd..2dbe487 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,7 +78,7 @@ target_include_directories(cuNSearch PUBLIC "include" "Utils" ${CUDA_INCLUDE_DIRS} - ${CMAKE_BINARY_DIR}/cuNSearch + ${CMAKE_CURRENT_BINARY_DIR}/cuNSearch ) target_link_libraries(cuNSearch PUBLIC ${CUDA_LIBRARIES}) target_compile_definitions(cuNSearch PUBLIC $<$:DEBUG>) From e68cbc8634908cc8aafec3dae90b0826a48b9397 Mon Sep 17 00:00:00 2001 From: hporro Date: Sun, 5 May 2024 11:22:41 +0200 Subject: [PATCH 2/2] change in order to facilitate the integration into other libs --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2dbe487..b5996de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,7 @@ target_include_directories(cuNSearch PUBLIC "Utils" ${CUDA_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR}/cuNSearch + ${CMAKE_BINARY_DIR}/cuNSearch ) target_link_libraries(cuNSearch PUBLIC ${CUDA_LIBRARIES}) target_compile_definitions(cuNSearch PUBLIC $<$:DEBUG>) @@ -96,7 +97,7 @@ install(TARGETS cuNSearch ) option(BUILD_DEMO "Build example of how to use this library." - ON) + OFF) if(BUILD_DEMO) add_subdirectory(demo) endif(BUILD_DEMO)