2010-02-15 23:21:38 -07:00
|
|
|
# don't use this file directly. use the one in the root folder of the project
|
|
|
|
|
2010-07-08 14:58:01 -06:00
|
|
|
# only build this stuff when BUILD_DFHACK_EXAMPLES is set to ON
|
|
|
|
IF (BUILD_DFHACK_EXAMPLES)
|
|
|
|
|
2010-02-15 23:21:38 -07:00
|
|
|
# this is required to ensure we use the right configuration for the system.
|
|
|
|
IF(UNIX)
|
|
|
|
add_definitions(-DLINUX_BUILD)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
2010-04-02 19:52:46 -06:00
|
|
|
# buildingsdump - dump buildings and their raw data filtered by type
|
2010-04-09 06:44:00 -06:00
|
|
|
ADD_EXECUTABLE(dfbuildingsdump buildingsdump.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfbuildingsdump dfhack)
|
2010-04-02 19:52:46 -06:00
|
|
|
|
2010-04-09 16:24:41 -06:00
|
|
|
# constructiondump - dump constructions!
|
|
|
|
ADD_EXECUTABLE(dfconstructiondump construction_dump.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfconstructiondump dfhack)
|
|
|
|
|
2010-02-15 23:21:38 -07:00
|
|
|
# creaturedump - basic creature dump - a test of the creature related exports
|
2010-04-04 04:29:56 -06:00
|
|
|
ADD_EXECUTABLE(dfcreaturedump creaturedump.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfcreaturedump dfhack)
|
2010-02-15 23:21:38 -07:00
|
|
|
|
|
|
|
# materialtest - just list the first material of each type
|
|
|
|
ADD_EXECUTABLE(dfmaterialtest materialtest.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfmaterialtest dfhack)
|
|
|
|
|
|
|
|
# position - check the DF window and cursor parameters
|
|
|
|
ADD_EXECUTABLE(dfposition position.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfposition dfhack)
|
|
|
|
|
|
|
|
# itemdump - dump the item under the cursor
|
2010-04-29 09:00:34 -06:00
|
|
|
ADD_EXECUTABLE(dfitemdump dfitemdump.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfitemdump dfhack)
|
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
|
2010-04-10 18:32:50 -06:00
|
|
|
ADD_EXECUTABLE(dfhotkeynotedump hotkeynotedump.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfhotkeynotedump dfhack)
|
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
|
2010-04-02 19:52:46 -06:00
|
|
|
# ADD_EXECUTABLE(dfsettlementdump settlementdump.cpp)
|
|
|
|
# TARGET_LINK_LIBRARIES(dfsettlementdump dfhack)
|
2010-02-22 19:25:57 -07:00
|
|
|
|
2010-04-07 08:45:38 -06:00
|
|
|
# treedump - dump them trees!
|
|
|
|
ADD_EXECUTABLE(dftreedump treedump.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dftreedump dfhack)
|
|
|
|
|
2010-04-07 14:28:05 -06:00
|
|
|
# spatterdump - dump spatter 'veins'
|
|
|
|
ADD_EXECUTABLE(dfspatterdump spatterdump.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfspatterdump dfhack)
|
|
|
|
|
2010-05-27 21:18:32 -06:00
|
|
|
# processenum - demonstrates the use of ProcessEnumerator
|
|
|
|
ADD_EXECUTABLE(dfprocessenum processenum.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfprocessenum dfhack)
|
|
|
|
|
2010-07-26 17:52:48 -06:00
|
|
|
install(TARGETS
|
|
|
|
dfbuildingsdump
|
|
|
|
dfconstructiondump
|
|
|
|
dfcreaturedump
|
|
|
|
dfmaterialtest
|
|
|
|
dfposition
|
|
|
|
dfitemdump
|
|
|
|
dfhotkeynotedump
|
|
|
|
dftreedump
|
|
|
|
dfspatterdump
|
|
|
|
dfprocessenum
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
2010-07-08 14:58:01 -06:00
|
|
|
ENDIF (BUILD_DFHACK_EXAMPLES)
|