dfhack/tools/examples/CMakeLists.txt

49 lines
1.6 KiB
CMake

2011-03-20 10:17:33 -06:00
if(NOT DEFINED DFHACK_CONSISTENCY)
MESSAGE(FATAL_ERROR "Please build the whole thing, not parts. You can turn parts on/off using options.")
ENDIF()
# this is required to ensure we use the right configuration for the system.
IF(UNIX)
2011-03-20 10:17:33 -06:00
add_definitions(-DLINUX_BUILD)
ENDIF(UNIX)
IF(MSVC)
ADD_CUSTOM_TARGET( memxml-for-examples
2011-03-20 10:17:33 -06:00
COMMAND ${CMAKE_COMMAND} -E copy ${dfhack_SOURCE_DIR}/Memory.xml ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Copying Memory.xml to ${CMAKE_CURRENT_BINARY_DIR}"
)
set(LOCAL_DEPNAME memxml-for-examples)
ENDIF()
# buildingsdump - dump buildings and their raw data filtered by type
DFHACK_TOOL(dfbuildingsdump buildingsdump.cpp)
2010-04-09 16:24:41 -06:00
# constructiondump - dump constructions!
DFHACK_TOOL(dfconstructiondump construction_dump.cpp)
2010-04-09 16:24:41 -06:00
# creaturedump - basic creature dump - a test of the creature related exports
DFHACK_TOOL(dfcreaturedump creaturedump.cpp)
# materialtest - just list the first material of each type
DFHACK_TOOL(dfmaterialtest materialtest.cpp)
# itemdump - dump the item under the cursor
DFHACK_TOOL(dfitemdump dfitemdump.cpp)
# hotkeynotedump - dumps the hotkeys and notes for the loaded map
# Author: belal
DFHACK_TOOL(dfhotkeynotedump hotkeynotedump.cpp)
# settlementdump - dumps the settlements on the loaded map
# Author: belal
# DFHACK_TOOL(dfsettlementdump settlementdump.cpp)
# treedump - dump them trees!
DFHACK_TOOL(dftreedump treedump.cpp)
2010-04-07 14:28:05 -06:00
# spatterdump - dump spatter 'veins'
DFHACK_TOOL(dfspatterdump spatterdump.cpp)
2010-04-07 14:28:05 -06:00
# processenum - demonstrates the use of ProcessEnumerator
DFHACK_TOOL(dfprocessenum processenum.cpp)