CMakeLists.txt 611 Bytes

# SWIG
#set(CMAKE_SWIG_OUTDIR swig)
FIND_PACKAGE(SWIG REQUIRED)
FIND_PACKAGE(JNI REQUIRED)
INCLUDE(${SWIG_USE_FILE})
include(UseJava)

# SWIG Java
INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH})
#INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(..)

SET(CMAKE_SWIG_FLAGS "")

SET_SOURCE_FILES_PROPERTIES(../morfeusz.i PROPERTIES CPLUSPLUS ON)
SWIG_ADD_MODULE(morfeusz-java java ../morfeusz.i)
SWIG_LINK_LIBRARIES(morfeusz-java ${JAVA_LIBRARIES})
SWIG_LINK_LIBRARIES(morfeusz-java libmorfeusz)

set (CMAKE_SHARED_LINKER_FLAGS "")
set (CMAKE_EXE_LINKER_FLAGS "")
set (CMAKE_CXX_FLAGS "-std=c++0x")