From 7fcba64613affeafc8761665cecd19a98d57dbda Mon Sep 17 00:00:00 2001 From: Jaewook Lee Date: Tue, 2 Jan 2024 21:34:33 +0100 Subject: [PATCH] set basic include path --- CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ebba5c3..4f81784 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,12 @@ set(CXX_HEADERS src/napf.hpp) add_library(napf INTERFACE) add_library(napf::napf ALIAS napf) +# basic path +target_include_directories(napf + INTERFACE + $ + $) + # try to use installed nanoflann. # else, include the one in the third_party find_package(nanoflann QUIET) @@ -38,9 +44,7 @@ else() set(CXX_HEADERS ${CXX_HEADERS} third_party/nanoflann.hpp) target_include_directories(napf INTERFACE - $ - $ - $) + $) endif() target_compile_features(napf INTERFACE cxx_std_11)