|
|
@ -104,4 +104,19 @@ IF(UNIX)
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/output/Memory.xml DESTINATION share/dfhack)
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/output/Memory.xml DESTINATION share/dfhack)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
|
|
|
|
#install(TARGETS mySharedLib DESTINATION /some/full/path)
|
|
|
|
# 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)
|
|
|
|
|
|
|
|
# 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)
|