CMakeLists.txt 583 Bytes

# SWIG
#set(CMAKE_SWIG_OUTDIR swig)
FIND_PACKAGE(SWIG REQUIRED)
FIND_PACKAGE(PythonLibs)
INCLUDE(${SWIG_USE_FILE})

# SWIG Java
INCLUDE_DIRECTORIES(${PYTHON_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 python ../morfeusz.i)
SWIG_LINK_LIBRARIES(morfeusz ${PYTHON_LIBRARIES})
SWIG_LINK_LIBRARIES(morfeusz libmorfeusz)

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