2010-02-15 23:21:38 -07:00
|
|
|
# don't use this file directly. use the one in the root folder of the project
|
|
|
|
|
|
|
|
# this is required to ensure we use the right configuration for the system.
|
|
|
|
IF(UNIX)
|
|
|
|
add_definitions(-DLINUX_BUILD)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
2011-03-16 00:35:08 -06:00
|
|
|
IF(MSVC)
|
|
|
|
ADD_CUSTOM_TARGET( memxml-for-examples
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/Memory.xml ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMENT "Copying Memory.xml to ${CMAKE_CURRENT_BINARY_DIR}"
|
|
|
|
)
|
|
|
|
set(LOCAL_DEPNAME memxml-for-examples)
|
|
|
|
ENDIF()
|
|
|
|
|
2010-04-02 19:52:46 -06:00
|
|
|
# buildingsdump - dump buildings and their raw data filtered by type
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfbuildingsdump buildingsdump.cpp)
|
2010-04-02 19:52:46 -06:00
|
|
|
|
2010-04-09 16:24:41 -06:00
|
|
|
# constructiondump - dump constructions!
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfconstructiondump construction_dump.cpp)
|
2010-04-09 16:24:41 -06:00
|
|
|
|
2010-02-15 23:21:38 -07:00
|
|
|
# creaturedump - basic creature dump - a test of the creature related exports
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfcreaturedump creaturedump.cpp)
|
2010-02-15 23:21:38 -07:00
|
|
|
|
|
|
|
# materialtest - just list the first material of each type
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfmaterialtest materialtest.cpp)
|
2010-02-15 23:21:38 -07:00
|
|
|
|
|
|
|
# itemdump - dump the item under the cursor
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfitemdump dfitemdump.cpp)
|
2010-02-15 23:21:38 -07:00
|
|
|
|
2010-02-17 16:33:08 -07:00
|
|
|
# hotkeynotedump - dumps the hotkeys and notes for the loaded map
|
|
|
|
# Author: belal
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfhotkeynotedump hotkeynotedump.cpp)
|
2010-02-17 16:33:08 -07:00
|
|
|
|
2010-02-22 19:25:57 -07:00
|
|
|
# settlementdump - dumps the settlements on the loaded map
|
|
|
|
# Author: belal
|
2011-03-16 00:35:08 -06:00
|
|
|
# DFHACK_TOOL(dfsettlementdump settlementdump.cpp)
|
2010-02-22 19:25:57 -07:00
|
|
|
|
2010-04-07 08:45:38 -06:00
|
|
|
# treedump - dump them trees!
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dftreedump treedump.cpp)
|
2010-04-07 08:45:38 -06:00
|
|
|
|
2010-04-07 14:28:05 -06:00
|
|
|
# spatterdump - dump spatter 'veins'
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfspatterdump spatterdump.cpp)
|
2010-04-07 14:28:05 -06:00
|
|
|
|
2010-05-27 21:18:32 -06:00
|
|
|
# processenum - demonstrates the use of ProcessEnumerator
|
2011-03-16 00:35:08 -06:00
|
|
|
DFHACK_TOOL(dfprocessenum processenum.cpp)
|