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)
|
|
|
|
|
2009-10-29 09:23:01 -06:00
|
|
|
# a benchmark program, reads the map 1000x
|
2009-10-29 18:56:40 -06:00
|
|
|
ADD_EXECUTABLE(dfexpbench expbench.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfexpbench dfhack)
|
2009-09-13 18:02:46 -06:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
# cleanmap - removes mud, snow, blood and similar stuff from a map. farmers beware
|
2009-10-29 18:56:40 -06:00
|
|
|
ADD_EXECUTABLE(dfcleanmap cleanmap.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfcleanmap dfhack)
|
2009-10-23 04:54:24 -06:00
|
|
|
|
|
|
|
# creaturedump - basic creature dump - a test of the creature related exports
|
2009-10-29 18:56:40 -06:00
|
|
|
ADD_EXECUTABLE(dfcreaturedump creaturedump.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfcreaturedump dfhack)
|
2009-10-29 09:23:01 -06:00
|
|
|
|
2009-11-03 18:01:55 -07:00
|
|
|
# buildingsdump - dump buildings and their raw data filtered by type
|
|
|
|
ADD_EXECUTABLE(dfbuildingsdump buildingsdump.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfbuildingsdump dfhack)
|
|
|
|
|
|
|
|
|
2009-10-29 09:23:01 -06:00
|
|
|
# attachtest - 100x attach/detach, 100x reads, 100x writes
|
2009-10-29 18:56:40 -06:00
|
|
|
ADD_EXECUTABLE(dfattachtest attachtest.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfattachtest dfhack)
|
|
|
|
|
2009-11-02 05:53:39 -07:00
|
|
|
# materialtest - just list the first material of each type
|
|
|
|
ADD_EXECUTABLE(dfmaterialtest materialtest.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfmaterialtest dfhack)
|
|
|
|
|
2009-11-11 18:39:43 -07:00
|
|
|
# materialtest - just list the first material of each type
|
|
|
|
ADD_EXECUTABLE(dfposition position.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfposition dfhack)
|
2009-11-02 05:53:39 -07:00
|
|
|
|
2009-11-16 09:47:22 -07:00
|
|
|
# incremental - incremental memory search tool, a foreshadowing of the future direction of dfhack
|
2009-11-14 21:25:00 -07:00
|
|
|
ADD_EXECUTABLE(dfincremental incrementalsearch.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dfincremental dfhack)
|
|
|
|
|
2009-10-29 18:56:40 -06:00
|
|
|
IF(UNIX)
|
2009-11-05 18:04:17 -07:00
|
|
|
install(TARGETS
|
|
|
|
dfexpbench
|
|
|
|
dfreveal
|
|
|
|
dfreveal
|
|
|
|
dfprospector
|
|
|
|
dfcleanmap
|
|
|
|
dfcreaturedump
|
|
|
|
dfattachtest
|
|
|
|
dfmaterialtest
|
|
|
|
dfbuildingsdump
|
2009-11-11 18:39:43 -07:00
|
|
|
dfposition
|
2009-11-14 21:25:00 -07:00
|
|
|
dfincremental
|
2009-11-05 18:04:17 -07:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
2009-10-29 18:56:40 -06:00
|
|
|
ENDIF(UNIX)
|