dfhack/CMakeLists.txt

34 lines
1.4 KiB
CMake

2010-06-10 02:30:56 -06:00
INCLUDE(CPack)
2009-09-13 18:02:46 -06:00
# main project file. use it from a build sub-folder, see COMPILE for details
PROJECT (dfhack)
2009-09-13 18:02:46 -06:00
cmake_minimum_required(VERSION 2.6)
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules)
2009-09-13 18:02:46 -06:00
# disable warning, autosearch
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
2009-09-13 18:02:46 -06:00
message(SEND_ERROR "In-source builds are not allowed.")
endif("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
2009-09-13 18:02:46 -06:00
IF(NOT DEFINED CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
ENDIF(NOT DEFINED CMAKE_BUILD_TYPE)
SET( LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/output CACHE PATH "Output directory for the dfhack library" )
SET( EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/output CACHE PATH "Output directory for the dfhack tools" )
2009-09-13 18:02:46 -06:00
2010-05-25 22:48:23 -06:00
include_directories (${CMAKE_SOURCE_DIR}/library/include/)
include_directories (${CMAKE_SOURCE_DIR}/library/shm/)
include_directories (${CMAKE_SOURCE_DIR}/library/depends/md5/)
include_directories (${CMAKE_SOURCE_DIR}/library/depends/tinyxml/)
include_directories (${CMAKE_SOURCE_DIR}/library/depends/argstream/)
2009-09-13 18:02:46 -06:00
2010-05-25 22:48:23 -06:00
add_subdirectory (library)
2010-05-23 15:06:10 -06:00
#add_subdirectory (dfhack/python)
2010-05-25 19:22:17 -06:00
add_subdirectory (tools/examples)
add_subdirectory (tools/playground)
add_subdirectory (tools/supported)