2010-05-25 19:22:17 -06: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)
|
|
|
|
|
|
|
|
# a creature mood dump hack. has hardcoded offsets
|
|
|
|
ADD_EXECUTABLE(dfmoodump moodump.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfmoodump dfhack)
|
|
|
|
|
|
|
|
# bauxite - turn all mechanisms into bauxite mechanisms
|
|
|
|
# Author: Alex Legg
|
|
|
|
#ADD_EXECUTABLE(dfbauxite dfbauxite.cpp)
|
|
|
|
#TARGET_LINK_LIBRARIES(dfbauxite dfhack)
|
|
|
|
|
|
|
|
# digger - designate for digging by tile class
|
|
|
|
# Author: mizipzor
|
|
|
|
ADD_EXECUTABLE(dfdigger digger.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfdigger dfhack)
|
|
|
|
|
|
|
|
# digger2 - designate for digging from a text file
|
|
|
|
# Author: rOut
|
|
|
|
ADD_EXECUTABLE(dfdigger2 digger2.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfdigger2 dfhack)
|
|
|
|
|
2011-02-08 14:55:40 -07:00
|
|
|
ADD_EXECUTABLE(primitives primitives.cpp)
|
|
|
|
|
2010-05-25 19:22:17 -06:00
|
|
|
# itemdesignator - change some item designations (dump, forbid, on-fire) for all
|
|
|
|
# items of a given type and material
|
|
|
|
# Author: belal
|
|
|
|
#ADD_EXECUTABLE(dfitemdesignator itemdesignator.cpp)
|
|
|
|
#TARGET_LINK_LIBRARIES(dfitemdesignator dfhack)
|
|
|
|
|
|
|
|
# incrementalsearch - a bit like cheat engine, only DF-specific, very basic
|
|
|
|
# and Linux-only
|
|
|
|
IF(UNIX)
|
2011-02-08 14:55:40 -07:00
|
|
|
ADD_EXECUTABLE(dfautosearch autosearch.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfautosearch dfhack)
|
2010-05-25 19:22:17 -06:00
|
|
|
ADD_EXECUTABLE(dfincremental incrementalsearch.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfincremental dfhack)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
# catsplosion - Accelerates pregnancy
|
|
|
|
# Author: Zhentar
|
|
|
|
ADD_EXECUTABLE(dfcatsplosion catsplosion.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfcatsplosion dfhack)
|
|
|
|
|
|
|
|
# findnameindexes
|
|
|
|
# Author: belal
|
|
|
|
#ADD_EXECUTABLE(dffindnameindexes findnameindexes.cpp)
|
|
|
|
#TARGET_LINK_LIBRARIES(dffindnameindexes dfhack)
|
|
|
|
|
|
|
|
# renamer - change the custom names and professions of creatures, sends keys to
|
|
|
|
# df directly
|
|
|
|
# Author: belal
|
|
|
|
#ADD_EXECUTABLE(dfrenamer renamer.cpp)
|
2010-06-16 22:46:20 -06:00
|
|
|
#TARGET_LINK_LIBRARIES(dfrenamer dfhack)
|
2010-07-08 14:58:01 -06:00
|
|
|
|
2010-08-27 12:56:38 -06:00
|
|
|
# copypaste
|
|
|
|
# Author: belal
|
|
|
|
# copies the current buildings in a df map, and then designates the area to be dug
|
|
|
|
# mainly a proof of concept for my gui application dfCopyPaste
|
|
|
|
ADD_EXECUTABLE(dfcopypaste copypaste.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfcopypaste dfhack)
|
|
|
|
|
2010-09-12 19:36:31 -06:00
|
|
|
# paths
|
|
|
|
# Author: belal
|
|
|
|
# dumps the current path to the DF exe, as well as the relative paths to the
|
|
|
|
# current tileset and color files
|
|
|
|
ADD_EXECUTABLE(dfpaths paths.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfpaths dfhack)
|
|
|
|
|
2010-10-16 22:21:18 -06:00
|
|
|
# deramp
|
|
|
|
# Author: zilpin
|
|
|
|
# seeks entire map for 'remove ramp' designation, makes a floor, removes designation.
|
|
|
|
# intended use is to simulate old 'channel' functionality.
|
|
|
|
ADD_EXECUTABLE(dfderamp deramp.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfderamp dfhack)
|
|
|
|
|
|
|
|
|
|
|
|
# printtiletypes
|
|
|
|
# Author: zilpin
|
|
|
|
# Prints CSV dump of all tile type information.
|
|
|
|
# No DF process needed. Intended only for debugging and information purposes.
|
|
|
|
ADD_EXECUTABLE(dfprinttiletypes printtiletypes.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfprinttiletypes dfhack)
|
|
|
|
|
|
|
|
# hellhole
|
|
|
|
# Author: zilpin
|
|
|
|
# Creates a bottomless hole to hell.
|
|
|
|
# Experimental version hard-codes values.
|
|
|
|
# Will have many options in the future.
|
|
|
|
ADD_EXECUTABLE(dfhellhole hellhole.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfhellhole dfhack)
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-08-12 18:35:10 -06:00
|
|
|
# this needs the C bindings
|
2010-09-01 12:51:12 -06:00
|
|
|
IF(BUILD_DFHACK_C_BINDINGS)
|
2010-08-12 18:35:10 -06:00
|
|
|
# for trying out some 'stuff'
|
|
|
|
ADD_EXECUTABLE(dftest test.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dftest dfhack)
|
|
|
|
install(TARGETS
|
|
|
|
dftest
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
2010-09-01 12:51:12 -06:00
|
|
|
ENDIF(BUILD_DFHACK_C_BINDINGS)
|
2010-08-12 18:35:10 -06:00
|
|
|
|
2010-07-26 17:52:48 -06:00
|
|
|
install(TARGETS
|
|
|
|
dfmoodump
|
|
|
|
dfdigger
|
|
|
|
dfdigger2
|
|
|
|
dfcatsplosion
|
2010-10-16 22:21:18 -06:00
|
|
|
dfderamp
|
|
|
|
dfprinttiletypes
|
|
|
|
dfhellhole
|
2010-07-26 17:52:48 -06:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
|
|
|
IF(UNIX)
|
|
|
|
install(TARGETS
|
2011-02-08 14:55:40 -07:00
|
|
|
dfautosearch
|
2010-07-26 17:52:48 -06:00
|
|
|
dfincremental
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
|
|
|
ENDIF(UNIX)
|