SRC_DIR=pwd BUILD_DIR=${SRC_DIR}/build mkdir -p ${BUILD_DIR} && cd${BUILD_DIR} cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${SRC_DIR} # if Eigen or Boost are not available system-wide, run at that point: # cmake-gui . # cmake-gui allows you to tell the location of Eigen or Boost make sudo make install
#-------------------- # DEPENDENCY: nabo #-------------------- if (NOTTARGET nabo) # Find libnabo: find_package(libnabo REQUIRED PATHS ${LIBNABO_INSTALL_DIR}) message(STATUS "libnabo found, version ${libnabo_VERSION} (include=${libnabo_INCLUDE_DIRS} libs=${libnabo_LIBRARIES})") else() # libnabo already part of this project (e.g. as a git submodule) # (This, plus the use of cmake target properties in libnabo, will also # introduce the required include directories, flags, etc.) endif() # This cmake target alias will be defined by either: # a) libnabo sources if built as a git submodule in the same project than this library, or # b) by libnabo-targets.cmake, included by find_package(libnabo) above. set(libnabo_LIBRARIES libnabo::nabo)
# target_link_libraries THIRD_PARTY_LIBS is ok set(THIRD_PARTY_LIBS ${libnabo_LIBRARIES} )