@ -14,8 +14,6 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
message ( FATAL_ERROR "In-source builds are not allowed." )
message ( FATAL_ERROR "In-source builds are not allowed." )
endif ( )
endif ( )
set ( DEVEL_RELEASE "-dev" )
set ( CPACK_PACKAGE_VERSION_MAJOR "0" )
set ( CPACK_PACKAGE_VERSION_MAJOR "0" )
set ( CPACK_PACKAGE_VERSION_MINOR "5" )
set ( CPACK_PACKAGE_VERSION_MINOR "5" )
set ( CPACK_PACKAGE_VERSION_PATCH "8" )
set ( CPACK_PACKAGE_VERSION_PATCH "8" )
@ -76,9 +74,17 @@ IF(${DFHACK_INSTALL} STREQUAL "linux")
ENDIF ( )
ENDIF ( )
# # s o m e o p t i o n s f o r t h e u s e r / d e v e l o p e r t o p l a y w i t h
# # s o m e o p t i o n s f o r t h e u s e r / d e v e l o p e r t o p l a y w i t h
OPTION ( BUILD_DFHACK_SUPPORTED "Build the supported tools." ON )
OPTION ( BUILD_DFHACK_LIBRARY "Build the library. Needed for all the tools." ON )
OPTION ( BUILD_DFHACK_C_BINDINGS "Build the C portion of the library" ON )
OPTION ( BUILD_DFHACK_C_BINDINGS "Build the C portion of the library." ON )
OPTION ( BUILD_DFHACK_PYTHON_BINDINGS "Build/install the python wrapper." ON )
IF ( WIN32 )
OPTION ( BUILD_DFHACK_DEVEL "Build the developer stuff." OFF )
ENDIF ( )
IF ( UNIX )
OPTION ( BUILD_DFHACK_DEVEL "Build the developer stuff." ON )
ENDIF ( )
OPTION ( BUILD_DFHACK_DOXYGEN "Create doxygen documentation for developers" ON )
OPTION ( BUILD_DFHACK_DOXYGEN "Create doxygen documentation for developers" 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 )
@ -86,11 +92,6 @@ include_directories (${CMAKE_SOURCE_DIR}/library/include/)
include_directories ( ${ CMAKE_SOURCE_DIR } /library/shm/ )
include_directories ( ${ CMAKE_SOURCE_DIR } /library/shm/ )
include_directories ( ${ CMAKE_SOURCE_DIR } /library/depends/argstream/ )
include_directories ( ${ CMAKE_SOURCE_DIR } /library/depends/argstream/ )
add_subdirectory ( library )
# # i n s t a l l t h e d e f a u l t d o c u m e n t a t i o n f i l e s
install ( FILES Readme.html Compile.html DESTINATION ${ DFHACK_USERDOC_DESTINATION } )
# m a c r o t o s a v e o n t y p i n g i n t h e t o o l s u b d i r s
# m a c r o t o s a v e o n t y p i n g i n t h e t o o l s u b d i r s
# b u i l d s a t o o l , l i n k s i t t o t h e d f h a c k l i b a n d m a k e s s u r e t h e d e p e n d e n c y
# b u i l d s a t o o l , l i n k s i t t o t h e d f h a c k l i b a n d m a k e s s u r e t h e d e p e n d e n c y
# L O C A L _ D E P N A M E i s b u i l t f i r s t , i n c a s e t h e r e i s o n e
# L O C A L _ D E P N A M E i s b u i l t f i r s t , i n c a s e t h e r e i s o n e
@ -105,19 +106,30 @@ MACRO(DFHACK_TOOL TOOL_NAME TOOL_SOURCES)
R U N T I M E D E S T I N A T I O N $ { D F H A C K _ B I N A R Y _ D E S T I N A T I O N } )
R U N T I M E D E S T I N A T I O N $ { D F H A C K _ B I N A R Y _ D E S T I N A T I O N } )
ENDMACRO ( )
ENDMACRO ( )
IF ( BUILD_DFHACK_SUPPORTED )
IF ( BUILD_DFHACK_LIBRARY )
add_subdirectory ( library )
IF ( BUILD_DFHACK_PYTHON_BINDINGS )
MESSAGE ( "TODO: write CMakeLists.txt for the python things." )
ENDIF ( )
IF ( BUILD_DFHACK_SUPPORTED )
add_subdirectory ( tools/supported )
add_subdirectory ( tools/supported )
ENDIF ( )
ENDIF ( )
IF ( BUILD_DFHACK_EXAMPLES )
IF ( BUILD_DFHACK_EXAMPLES )
add_subdirectory ( tools/examples )
add_subdirectory ( tools/examples )
ENDIF ( )
ENDIF ( )
IF ( BUILD_DFHACK_PLAYGROUND )
IF ( BUILD_DFHACK_PLAYGROUND )
add_subdirectory ( tools/playground )
add_subdirectory ( tools/playground )
ENDIF ( )
ENDIF ( )
# # i n s t a l l t h e d e f a u l t d o c u m e n t a t i o n f i l e s
install ( FILES LICENSE Readme.html DESTINATION ${ DFHACK_USERDOC_DESTINATION } )
endif ( )
IF ( BUILD_DFHACK_DOXYGEN )
IF ( BUILD_DFHACK_DOXYGEN AND BUILD_DFHACK_DEVEL )
add_subdirectory ( doc )
add_subdirectory ( doc )
ENDIF ( )
ENDIF ( )