Permalink
Browse files

Updated cmake variable BUILD_BENCHMARKS

  • Loading branch information...
pranjal-rai committed Aug 25, 2017
1 parent 50ad8cd commit 4e561aee693718f4370487f14e5f2a16026cca60
Showing with 5 additions and 5 deletions.
  1. +1 −1 .travis.sh
  2. +4 −4 CMakeLists.txt
View
@@ -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
}
View
@@ -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")

0 comments on commit 4e561ae

Please sign in to comment.