title: android/log.h not found when building with cmake
body: <p>I've started developing with Android NDK in Android Studio but it's a big pain since it doesn't have a proper C++ support. So I try to create a cmake project to build my stuff. I've used <a href="https://github.com/taka-no-me/android-cmake" rel="noreferrer">android-cmake</a> and it works well so far, except for the fact that <code>&lt;android/log.h&gt;</code>, <code>&lt;android/native_window.h&gt;</code> and probably all the <code>&lt;android/*&gt;</code> inclusions cannot be found. IDE (CLion) also marks them as missing because of it. Am I missing something in <code>CMakeLists.txt</code>?</p>
  
  <p>Here is CMakeLists.txt:</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.8.4)
  project(App)
  
  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
  
  include(AndroidNdkGdb)
  include(AndroidNdkModules)
  
  android_ndk_gdb_enable()
  
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
  set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/src/main/libs/armeabi-v7a)
  
  set(LIBRARY_DEPS GLESv2 android log)
  
  include_directories(${PROJECT_SOURCE_DIR}/src/main/lib/armeabi-v7a/freetype/include/freetype2)
  
  file(GLOB_RECURSE SRCS *.cpp)
  file(GLOB_RECURSE HDRS *.h)
  
  add_library(nativeegl SHARED ${SRCS} ${HDRS})
  target_link_libraries(nativeegl log android)
  
  android_ndk_gdb_debuggable(nativeegl)
  </code></pre>
  
  <p>and cmake launch params:</p>
  
  <pre><code>-DCMAKE_TOOLCHAIN_FILE=android.toolchain.cmake \
  -DANDROID_NDK=/opt/android-ndk -DCMAKE_BUILD_TYPE=Debug \
  -DANDROID_ABI="armeabi-v7a" -DANDROID_STL=gnustl_static \
  -DANDROID_NATIVE_API_LEVEL=android-21
  </code></pre>
  
  <p>And this is the original Android.mk that works fine when I build in studio:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include $(CLEAR_VARS)
  
  LOCAL_MODULE    := nativeegl
  LOCAL_SRC_FILES := $(patsubst $(LOCAL_PATH)/%, %, $(wildcard $(LOCAL_PATH)/*.cpp))
  
  LOCAL_C_INCLUDES :=
  LOCAL_CFLAGS := -std=c++11 -O2 -Wtype-limits -Wmissing-field-initializers -Wreturn-type -Wuninitialized
  
  LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv2
  LOCAL_STATIC_LIBRARIES := android_native_app_glue ndk_helper freetype
  
  include $(BUILD_SHARED_LIBRARY)
  
  $(call import-add-path,$(LOCAL_PATH)/../lib/$(TARGET_ARCH_ABI))
  $(call import-module,freetype)
  </code></pre>
  
  <p>And Application.mk:</p>
  
  <pre><code>APP_STL := gnustl_static
  APP_PLATFORM := android-10
  APP_ABI := armeabi-v7a
  </code></pre>
  
  <p>appreciate your help.</p>