mirror of
https://github.com/jlblancoc/nanoflann.git
synced 2026-01-16 21:01:17 +01:00
Updated cmake variable BUILD_BENCHMARKS
This commit is contained in:
@@ -10,7 +10,7 @@ CMAKE_CXX_FLAGS="-Wall -Wextra -Wabi -O2"
|
||||
function build ()
|
||||
{
|
||||
mkdir $BUILD_DIR && cd $BUILD_DIR
|
||||
cmake $SRC_DIR
|
||||
cmake -DBUILD_BENCHMARKS=OFF $SRC_DIR
|
||||
sudo make -j2
|
||||
}
|
||||
|
||||
|
||||
@@ -74,6 +74,10 @@ ENDIF()
|
||||
# Benchmarks
|
||||
OPTION(BUILD_BENCHMARKS "Build benchmarks" ON)
|
||||
IF(BUILD_BENCHMARKS)
|
||||
# 3rdparty Libraries
|
||||
include(3rdparty/CMakeLists-flann.txt)
|
||||
include(3rdparty/CMakeLists-fastann.txt)
|
||||
include(3rdparty/CMakeLists-libkdtree.txt)
|
||||
add_subdirectory(benchmarkTool/realTests)
|
||||
add_subdirectory(benchmarkTool/randomTests)
|
||||
ENDIF()
|
||||
@@ -116,10 +120,6 @@ set(INSTALL_PKGCONFIG_DIR "lib${LIB_SUFFIX}/pkgconfig")
|
||||
set(INSTALL_CMAKE_DIR "lib${LIB_SUFFIX}/cmake/nanoflann")
|
||||
set(INSTALL_COPYRIGHT_DIR "share/doc/libnanoflann-dev")
|
||||
|
||||
# 3rdparty Libraries
|
||||
include(3rdparty/CMakeLists-flann.txt)
|
||||
include(3rdparty/CMakeLists-fastann.txt)
|
||||
include(3rdparty/CMakeLists-libkdtree.txt)
|
||||
|
||||
# Generate the cmake config and cmake config-version file:
|
||||
SET(RELATIVE_INCLUDE_DIR "../../../include")
|
||||
|
||||
Reference in New Issue
Block a user