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)