flattened flann directory structure; patched zlib to build with Android NDK

This commit is contained in:
Vadim Pisarevsky 2010-09-14 18:13:09 +00:00
parent 39918a2755
commit a09b5d1a23
28 changed files with 17 additions and 11 deletions

View File

@ -12,22 +12,17 @@ project(flann)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/algorithms
${CMAKE_CURRENT_SOURCE_DIR}/util
${CMAKE_CURRENT_SOURCE_DIR}/nn
"${CMAKE_CURRENT_SOURCE_DIR}/../include/flann"
)
# The .cpp files:
file(GLOB_RECURSE flann_sources_cpp *.cpp)
file(GLOB_RECURSE flann_sources_h1 "${CMAKE_CURRENT_SOURCE_DIR}/../include/flann/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/../include/flann/*.hpp")
file(GLOB_RECURSE flann_sources_h2 *.h *.hpp)
file(GLOB flann_sources *.cpp *.h *.hpp)
file(GLOB flann_h "${CMAKE_CURRENT_SOURCE_DIR}/../include/flann/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/../include/flann/*.hpp")
source_group("Src" FILES ${flann_sources_cpp})
source_group("Include\\External" FILES ${flann_sources_h1})
source_group("Include\\Internal" FILES ${flann_sources_h2})
source_group("Src" FILES ${flann_sources})
source_group("Include" FILES ${flann_h})
set(flann_sources ${flann_sources_cpp} ${flann_sources_h1} ${flann_sources_h2})
set(flann_sources ${flann_sources} ${flann_h})
# ----------------------------------------------------------------------------------
# Define the library target:

View File

@ -19,7 +19,7 @@
#endif
#include <stdio.h>
#include "zlib.h"
#include "zutil.h"
#ifdef STDC
# include <string.h>
# include <stdlib.h>
@ -36,6 +36,10 @@
# define vsnprintf _vsnprintf
#endif
#ifdef __GNUC__
#include <unistd.h>
#endif
#ifndef local
# define local static
#endif

View File

@ -21,6 +21,13 @@
#include "zlib.h"
#ifdef __arm__
# define z_off64_t z_off_t
#endif
#ifndef Z_TREES
#define Z_TREES 6
#endif
#ifdef STDC
# if !(defined(_WIN32_WCE) && defined(_MSC_VER))
# include <stddef.h>