|
|
|
@ -54,40 +54,4 @@ TARGET_LINK_LIBRARIES(dfspatterdump dfhack)
|
|
|
|
|
ADD_EXECUTABLE(dfprocessenum processenum.cpp)
|
|
|
|
|
TARGET_LINK_LIBRARIES(dfprocessenum dfhack)
|
|
|
|
|
|
|
|
|
|
IF(UNIX)
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
ENDIF (BUILD_DFHACK_EXAMPLES)
|