@ -145,6 +145,7 @@ OPTION(BUILD_DFHACK_DOXYGEN "Create doxygen documentation for developers" ON)
OPTION ( BUILD_DFHACK_SUPPORTED "Build the supported tools." ON )
OPTION ( BUILD_DFHACK_SUPPORTED "Build the supported tools." ON )
OPTION ( BUILD_DFHACK_EXAMPLES "Build example tools" OFF )
OPTION ( BUILD_DFHACK_EXAMPLES "Build example tools" OFF )
OPTION ( BUILD_DFHACK_PLAYGROUND "Build tools from the playground folder" OFF )
OPTION ( BUILD_DFHACK_PLAYGROUND "Build tools from the playground folder" OFF )
OPTION ( BUILD_NO_CURSES "Don't build tools requiring curses" OFF )
include_directories ( ${ dfhack_SOURCE_DIR } /library/include/ )
include_directories ( ${ dfhack_SOURCE_DIR } /library/include/ )
include_directories ( ${ dfhack_SOURCE_DIR } /library/shm/ )
include_directories ( ${ dfhack_SOURCE_DIR } /library/shm/ )
@ -188,7 +189,7 @@ ENDMACRO()
# s a m e a s a b o v e b u i l d s a c u r s e s t o o l i n s t e a d o f p l a i n t e r m i n a l o n e .
# s a m e a s a b o v e b u i l d s a c u r s e s t o o l i n s t e a d o f p l a i n t e r m i n a l o n e .
MACRO ( DFHACK_CURSES_TOOL TOOL_NAME TOOL_SOURCES )
MACRO ( DFHACK_CURSES_TOOL TOOL_NAME TOOL_SOURCES )
IF ( Curses_FOUND )
IF ( Curses_FOUND AND NOT BUILD_NO_CURSES )
ADD_EXECUTABLE ( ${ TOOL_NAME } ${ TOOL_SOURCES } )
ADD_EXECUTABLE ( ${ TOOL_NAME } ${ TOOL_SOURCES } )
TARGET_LINK_LIBRARIES ( ${ TOOL_NAME } dfhack curses )
TARGET_LINK_LIBRARIES ( ${ TOOL_NAME } dfhack curses )
if ( DEFINED LOCAL_DEPNAME )
if ( DEFINED LOCAL_DEPNAME )