83 lines
2.3 KiB
CMake
83 lines
2.3 KiB
CMake
# 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 reveal clone
|
|
ADD_EXECUTABLE(dfreveal reveal.cpp)
|
|
TARGET_LINK_LIBRARIES(dfreveal dfhack)
|
|
|
|
# a reveal clone
|
|
ADD_EXECUTABLE(dfmoodump moodump.cpp)
|
|
TARGET_LINK_LIBRARIES(dfmoodump dfhack)
|
|
|
|
# prospector - produces a list of available materials and their quantities
|
|
ADD_EXECUTABLE(dfprospector prospector.cpp)
|
|
TARGET_LINK_LIBRARIES(dfprospector dfhack)
|
|
|
|
# vdig - dig the vein under the cursor
|
|
ADD_EXECUTABLE(dfvdig vdig.cpp)
|
|
TARGET_LINK_LIBRARIES(dfvdig dfhack)
|
|
|
|
# cleanmap - removes mud, snow, blood and similar stuff from a map. farmers beware
|
|
ADD_EXECUTABLE(dfcleanmap cleanmap.cpp)
|
|
TARGET_LINK_LIBRARIES(dfcleanmap dfhack)
|
|
|
|
# unstuck - make DF run if something goes wrong with the 'normal' memory access method
|
|
ADD_EXECUTABLE(dfunstuck unstuck.cpp)
|
|
TARGET_LINK_LIBRARIES(dfunstuck dfhack)
|
|
|
|
# probe - map tile probe
|
|
ADD_EXECUTABLE(dfprobe probe.cpp)
|
|
TARGET_LINK_LIBRARIES(dfprobe dfhack)
|
|
|
|
IF(UNIX)
|
|
# incrementalsearch - a bit like cheat engine, only DF-specific, very basic
|
|
# and Linux-only
|
|
ADD_EXECUTABLE(dfincremental incrementalsearch.cpp)
|
|
TARGET_LINK_LIBRARIES(dfincremental dfhack)
|
|
ENDIF(UNIX)
|
|
|
|
# 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)
|
|
|
|
# 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)
|
|
|
|
# a magma creation tool
|
|
# Author: Aleric
|
|
ADD_EXECUTABLE(dfliquids liquids.cpp)
|
|
TARGET_LINK_LIBRARIES(dfliquids dfhack)
|
|
|
|
IF(UNIX)
|
|
install(TARGETS
|
|
#dfbauxite
|
|
#dfcleanmap
|
|
#dfdigger
|
|
dfincremental
|
|
#dfitemdesignator
|
|
#dfmagma_create
|
|
dfprospector
|
|
dfreveal
|
|
dfmoodump
|
|
RUNTIME DESTINATION bin
|
|
)
|
|
ENDIF(UNIX)
|