Skip to content

Commit

Permalink
Fixed build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pranjal-rai committed Aug 14, 2017
1 parent a63b82a commit fb48194
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -55,6 +55,11 @@ target_include_directories(nanoflann
OPTION(BUILD_EXAMPLES "Build examples" ON)
IF(BUILD_EXAMPLES)
add_subdirectory(examples)
ENDIF()

# Benchmarks
OPTION(BUILD_BENCHMARKS "Build benchmarks" ON)
IF(BUILD_BENCHMARKS)
add_subdirectory(benchmarkTool/realTests)
ENDIF()

Expand Down
8 changes: 5 additions & 3 deletions benchmarkTool/realTests/CMakeLists.txt
@@ -1,9 +1,11 @@
set(flann_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/3rdparty/flann/src/cpp/")
set(flann_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/3rdparty/flann/src/cpp")
include_directories(${flann_INCLUDE_DIRS})

# examples:
set(flann_LIBRARIES "${CMAKE_SOURCE_DIR}/build/flann-prefix/src/flann-build/lib/libflann.so")

# benchmark files:
ADD_EXECUTABLE(nanoflann_test nanoflann_test.cpp)
TARGET_LINK_LIBRARIES(nanoflann_test nanoflann)

ADD_EXECUTABLE(flann_test flann_test.cpp)
TARGET_LINK_LIBRARIES(flann_test nanoflann)
TARGET_LINK_LIBRARIES(flann_test nanoflann ${flann_LIBRARIES})
1 change: 1 addition & 0 deletions benchmarkTool/realTests/flann_test.cpp
Expand Up @@ -31,6 +31,7 @@
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>

using namespace std;
using namespace flann;
Expand Down
1 change: 1 addition & 0 deletions benchmarkTool/realTests/nanoflann_test.cpp
Expand Up @@ -31,6 +31,7 @@
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>

using namespace std;
using namespace nanoflann;
Expand Down

0 comments on commit fb48194

Please sign in to comment.