|
|
|
@ -109,16 +109,16 @@ ENDIF(UNIX)
|
|
|
|
|
# SWIG stuff
|
|
|
|
|
FIND_PACKAGE(SWIG)
|
|
|
|
|
|
|
|
|
|
IF(SWIG_FOUND)
|
|
|
|
|
INCLUDE(${SWIG_USE_FILE})
|
|
|
|
|
FIND_PACKAGE(PythonLibs)
|
|
|
|
|
IF(PYTHONLIBS_FOUND)
|
|
|
|
|
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})
|
|
|
|
|
SET(CMAKE_SWIG_FLAGS "-c++")
|
|
|
|
|
SET_SOURCE_FILES_PROPERTIES(pydfhack.i PROPERTIES CPLUSPLUS ON)
|
|
|
|
|
#IF(SWIG_FOUND)
|
|
|
|
|
# INCLUDE(${SWIG_USE_FILE})
|
|
|
|
|
# FIND_PACKAGE(PythonLibs)
|
|
|
|
|
# IF(PYTHONLIBS_FOUND)
|
|
|
|
|
# INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})
|
|
|
|
|
# SET(CMAKE_SWIG_FLAGS "-c++")
|
|
|
|
|
# SET_SOURCE_FILES_PROPERTIES(pydfhack.i PROPERTIES CPLUSPLUS ON)
|
|
|
|
|
# SET(CMAKE_DFHACK_SWIG_OUTDIR ${dfhack_SOURCE_DIR}/output CACHE PATH "Directory where Java wrapped libraries will be saved.")
|
|
|
|
|
# SET_SOURCE_FILES_PROPERTIES(pydfhack.i PROPERTIES SWIG_FLAGS "-includeall")
|
|
|
|
|
SWIG_ADD_MODULE(pydfhack python pydfhack.i)
|
|
|
|
|
SWIG_LINK_LIBRARIES(pydfhack ${PYTHON_LIBRARIES} dfhack)
|
|
|
|
|
ENDIF(PYTHONLIBS_FOUND)
|
|
|
|
|
ENDIF(SWIG_FOUND)
|
|
|
|
|
# # SET_SOURCE_FILES_PROPERTIES(pydfhack.i PROPERTIES SWIG_FLAGS "-includeall")
|
|
|
|
|
# SWIG_ADD_MODULE(pydfhack python pydfhack.i)
|
|
|
|
|
# SWIG_LINK_LIBRARIES(pydfhack ${PYTHON_LIBRARIES} dfhack)
|
|
|
|
|
# ENDIF(PYTHONLIBS_FOUND)
|
|
|
|
|
#ENDIF(SWIG_FOUND)
|