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
|
|
|
|
|
|
|
# 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)
|
|
|
|
|
|
|
|
IF(UNIX)
|
|
|
|
install(TARGETS dfexpbench dfreveal dfreveal dfprospector dfcleanmap dfcreaturedump dfattachtest RUNTIME DESTINATION bin)
|
|
|
|
ENDIF(UNIX)
|