SET(DFHACK_INSTALL"portable"CACHESTRING"Choose the install type: 'portable' for a portable zip or tar.gz package, 'linux' for packaging and system installs on linux, 'none' for no install target (default).")
SET(MEMXML_DATA_PATH.CACHEPATH"Path to a valid Memory.xml file. This is baked into the library, so when you package DFHack for linux, set it to the right path.")
IF(${DFHACK_INSTALL}STREQUAL"portable")
#thedfhacklibrarieswillbeinstalledhere:
SET(DFHACK_LIBRARY_DESTINATION.)
#thedfhacktoolswillbeinstalledhere:
SET(DFHACK_BINARY_DESTINATION.)
#Memory.xmlgoeshere:
SET(DFHACK_DATA_DESTINATION.)
#Includesgohere:
SET(DFHACK_INCLUDES_DESTINATIONdev/include)
#theWindows.libfilesgohere:
IF(WIN32)
SET(DFHACK_DEVLIB_DESTINATIONdev)
SET(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION.)
ENDIF()
ENDIF()
IF(${DFHACK_INSTALL}STREQUAL"linux")
#thedfhacklibrarieswillbeinstalledhere:
SET(DFHACK_LIBRARY_DESTINATIONlib)
#thedfhacktoolswillbeinstalledhere:
SET(DFHACK_BINARY_DESTINATIONbin)
#Memory.xmlgoeshere:
SET(DFHACK_DATA_DESTINATIONshare/dfhack)
#Includesgohere:
SET(DFHACK_INCLUDES_DESTINATIONinclude)
ENDIF()
##someoptionsfortheuser/developertoplaywith
OPTION(BUILD_DFHACK_SUPPORTED"Build the supported tools."ON)
OPTION(BUILD_DFHACK_C_BINDINGS"Build the C portion of the library"ON)
OPTION(BUILD_DFHACK_DOXYGEN"Create doxygen documentation for developers"ON)
OPTION(BUILD_DFHACK_EXAMPLES"Build example tools"OFF)
OPTION(BUILD_DFHACK_PLAYGROUND"Build tools from the playground folder"OFF)
OPTION(BUILD_DFHACK_C_BINDINGS"Build the C portion of the library"ON)
OPTION(BUILD_DFHACK_SUPPORTED"Build the supported toold."ON)