cmake_minimum_required(VERSION 2.8)
project(JniHelpers)

if(NOT ANDROID)
  find_package(JNI REQUIRED)
endif(NOT ANDROID)

include_directories(${JNI_INCLUDE_DIRS})

file(GLOB libJniHelpers_SOURCES src/*.cpp)
file(GLOB libJniHelpers_HEADERS src/*.h)

link_directories(${JNI_LIBRARIES})
add_library(${PROJECT_NAME} ${libJniHelpers_SOURCES})

cmake_minimum_required(VERSION 2.8)
project(JniHelpers)

if(NOT ANDROID)
  find_package(JNI REQUIRED)
endif(NOT ANDROID)

include_directories(${JNI_INCLUDE_DIRS})

file(GLOB libJniHelpers_SOURCES src/*.cpp)
file(GLOB libJniHelpers_HEADERS src/*.h)

link_directories(${JNI_LIBRARIES})
add_library(${PROJECT_NAME} ${libJniHelpers_SOURCES} ${libJniHelpers_HEADERS})

Add headers to library dependencies
Add headers to library dependencies

Helps with cmake project generation
