CMakeLists.txt
665 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(..)
set (CMAKE_SWIG_FLAGS -package pl.waw.ipipan.morfeusz)
set (CMAKE_SWIG_OUTDIR ${CMAKE_SOURCE_DIR}/jmorfeusz/src/main/java/pl/waw/ipipan/morfeusz)
set_source_files_properties (../morfeusz.i PROPERTIES CPLUSPLUS ON)
SWIG_ADD_MODULE(jmorfeusz java ../morfeusz.i)
SWIG_LINK_LIBRARIES(jmorfeusz ${JAVA_LIBRARIES})
SWIG_LINK_LIBRARIES(jmorfeusz libmorfeusz)
set (CMAKE_SHARED_LINKER_FLAGS "")
set (CMAKE_EXE_LINKER_FLAGS "")
set (CMAKE_CXX_FLAGS "-O2")