2009-09-13 18:02:46 -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 reveal clone
|
2009-10-29 18:56:40 -06:00
|
|
|
ADD_EXECUTABLE(dfreveal reveal.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfreveal dfhack)
|
2009-09-13 18:02:46 -06:00
|
|
|
|
2010-11-07 01:49:33 -07:00
|
|
|
# force pause!
|
|
|
|
ADD_EXECUTABLE(dfpause forcepause.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfpause dfhack)
|
|
|
|
|
2009-09-13 18:02:46 -06:00
|
|
|
# prospector - produces a list of available materials and their quantities
|
2009-10-29 18:56:40 -06:00
|
|
|
ADD_EXECUTABLE(dfprospector prospector.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfprospector dfhack)
|
2009-09-13 18:02:46 -06:00
|
|
|
|
2010-04-10 18:08:21 -06:00
|
|
|
# vdig - dig the vein under the cursor
|
|
|
|
ADD_EXECUTABLE(dfvdig vdig.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfvdig dfhack)
|
|
|
|
|
2009-09-13 18:02:46 -06:00
|
|
|
# cleanmap - removes mud, snow, blood and similar stuff from a map. farmers beware
|
2010-04-09 18:12:45 -06:00
|
|
|
ADD_EXECUTABLE(dfcleanmap cleanmap.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfcleanmap dfhack)
|
2009-10-23 04:54:24 -06:00
|
|
|
|
2010-04-10 18:56:56 -06:00
|
|
|
# unstuck - make DF run if something goes wrong with the 'normal' memory access method
|
|
|
|
ADD_EXECUTABLE(dfunstuck unstuck.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfunstuck dfhack)
|
|
|
|
|
2010-04-30 13:52:37 -06:00
|
|
|
# probe - map tile probe
|
|
|
|
ADD_EXECUTABLE(dfprobe probe.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfprobe dfhack)
|
|
|
|
|
2010-05-25 19:22:17 -06:00
|
|
|
# attachtest - 100x attach/detach, suspend/resume
|
|
|
|
ADD_EXECUTABLE(dfattachtest attachtest.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfattachtest dfhack)
|
2009-11-17 07:52:47 -07:00
|
|
|
|
2010-05-25 19:22:17 -06:00
|
|
|
# a benchmark program, reads the map 1000x
|
|
|
|
ADD_EXECUTABLE(dfexpbench expbench.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfexpbench dfhack)
|
2010-02-06 19:55:54 -07:00
|
|
|
|
2010-05-25 19:22:17 -06:00
|
|
|
# suspendtest - test if suspend works. df should stop responding when suspended
|
|
|
|
# by dfhack
|
|
|
|
ADD_EXECUTABLE(dfsuspend suspendtest.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfsuspend dfhack)
|
2010-02-18 18:13:53 -07:00
|
|
|
|
2010-05-25 19:22:17 -06:00
|
|
|
# flows - check flows impact on fps
|
|
|
|
ADD_EXECUTABLE(dfflows flows.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfflows dfhack)
|
2010-05-01 16:49:01 -06:00
|
|
|
|
2010-05-25 19:22:17 -06:00
|
|
|
# liquids manipulation tool
|
|
|
|
# Original author: Aleric
|
2010-04-15 16:24:59 -06:00
|
|
|
ADD_EXECUTABLE(dfliquids liquids.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfliquids dfhack)
|
2010-02-18 18:13:53 -07:00
|
|
|
|
2010-08-13 15:25:14 -06:00
|
|
|
# Solves the problem of unusable items after reclaim by clearing the 'in_job' bit of all items.
|
|
|
|
# Original author: Quietust
|
|
|
|
ADD_EXECUTABLE(dfcleartask cleartask.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfcleartask dfhack)
|
|
|
|
|
2010-08-09 16:30:52 -06:00
|
|
|
# position - check the DF window and cursor parameters
|
|
|
|
ADD_EXECUTABLE(dfposition position.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfposition dfhack)
|
|
|
|
|
|
|
|
# just dump offsets of the current version
|
|
|
|
ADD_EXECUTABLE(dfdoffsets dumpoffsets.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfdoffsets dfhack)
|
|
|
|
|
2010-09-01 12:51:12 -06:00
|
|
|
# change the weather
|
|
|
|
ADD_EXECUTABLE(dfweather weather.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfweather dfhack)
|
|
|
|
|
|
|
|
|
2009-10-29 18:56:40 -06:00
|
|
|
IF(UNIX)
|
2010-09-07 16:06:30 -06:00
|
|
|
SET(VEINLOOK_BUILT "NO")
|
2010-07-08 15:15:51 -06:00
|
|
|
SET(CURSES_NEED_WIDE "YES")
|
|
|
|
SET(CURSES_NEED_NCURSES "NO")
|
|
|
|
find_package(Curses QUIET)
|
|
|
|
IF(CURSES_FOUND)
|
|
|
|
if(CURSES_HAVE_NCURSESW_NCURSES_H)
|
|
|
|
SET(NCURSES_H "ncursesw/ncurses.h")
|
|
|
|
elseif(CURSES_HAVE_NCURSESW_CURSES_H)
|
|
|
|
SET(NCURSES_H "ncursesw/curses.h")
|
|
|
|
elseif(CURSES_HAVE_NCURSESW_H)
|
|
|
|
SET(NCURSES_H "ncursesw.h")
|
|
|
|
elseif(CURSES_HAVE_CURSESW_H)
|
|
|
|
SET(NCURSES_H "cursesw.h")
|
|
|
|
endif(CURSES_HAVE_NCURSESW_NCURSES_H)
|
|
|
|
IF(NCURSES_H)
|
|
|
|
# OPTION( VARIABLE "Description" Initial state)
|
|
|
|
#OPTION( WITH_FOO "Enable FOO support" ON )
|
|
|
|
#OPTION( WITH_BAR "Enable BAR component" OFF )
|
|
|
|
#SET( BAZ 18 )
|
|
|
|
CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/fake-curses.h.cmake ${CMAKE_CURRENT_SOURCE_DIR}/fake-curses.h )
|
|
|
|
# veinlook - look at the map... sort of
|
|
|
|
ADD_EXECUTABLE(dfveinlook veinlook.cpp)
|
|
|
|
INCLUDE_DIRECTORIES(${CURSES_INCLUDE_DIR})
|
|
|
|
TARGET_LINK_LIBRARIES(dfveinlook dfhack ${CURSES_LIBRARIES})
|
|
|
|
install(TARGETS
|
|
|
|
dfveinlook
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
|
|
|
ENDIF(NCURSES_H)
|
|
|
|
ELSE(CURSES_FOUND)
|
|
|
|
MESSAGE(STATUS "Wide-character ncurses library not found - veinlook can't be built")
|
|
|
|
ENDIF(CURSES_FOUND)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
|
2009-11-05 18:04:17 -07:00
|
|
|
install(TARGETS
|
2010-03-26 05:20:30 -06:00
|
|
|
dfreveal
|
2010-05-25 19:22:17 -06:00
|
|
|
dfprospector
|
2010-08-09 16:30:52 -06:00
|
|
|
dfposition
|
2010-05-25 19:22:17 -06:00
|
|
|
dfvdig
|
|
|
|
dfcleanmap
|
|
|
|
dfunstuck
|
|
|
|
dfprobe
|
2010-11-07 01:49:33 -07:00
|
|
|
dfpause
|
2010-08-09 16:30:52 -06:00
|
|
|
dfdoffsets
|
2010-05-25 19:22:17 -06:00
|
|
|
dfattachtest
|
2010-08-13 15:25:14 -06:00
|
|
|
dfcleartask
|
2010-05-25 19:22:17 -06:00
|
|
|
dfexpbench
|
|
|
|
dfsuspend
|
|
|
|
dfflows
|
|
|
|
dfliquids
|
2010-09-01 13:09:45 -06:00
|
|
|
dfweather
|
2009-11-05 18:04:17 -07:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|