|
|
@ -4,6 +4,16 @@ cmake_minimum_required(VERSION 2.6)
|
|
|
|
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules)
|
|
|
|
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules)
|
|
|
|
SET ( DFHACK_VERSION "0.4.1.0-dev" )
|
|
|
|
SET ( DFHACK_VERSION "0.4.1.0-dev" )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Set this to project source dir. When dfhack is used
|
|
|
|
|
|
|
|
# as a submodule, CMAKE_SOURCE_DIR is not pointing to
|
|
|
|
|
|
|
|
# the root where this particular CMakeLists.txt file sits.
|
|
|
|
|
|
|
|
SET(CMAKE_SOURCE_DIR ${PROJECT_SOURCE_DIR})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Reset compiler flags.
|
|
|
|
|
|
|
|
# (Dfterm2 uses -D_UNICODE but dfhack doesn't compile with it,
|
|
|
|
|
|
|
|
# breaking dfhack when used as a submodule)
|
|
|
|
|
|
|
|
SET(COMPILE_DEFINITIONS "")
|
|
|
|
|
|
|
|
|
|
|
|
# disable warning, autosearch
|
|
|
|
# disable warning, autosearch
|
|
|
|
if(COMMAND cmake_policy)
|
|
|
|
if(COMMAND cmake_policy)
|
|
|
|
cmake_policy(SET CMP0003 NEW)
|
|
|
|
cmake_policy(SET CMP0003 NEW)
|
|
|
@ -43,4 +53,4 @@ add_subdirectory (library/shm)
|
|
|
|
add_subdirectory (tools/examples)
|
|
|
|
add_subdirectory (tools/examples)
|
|
|
|
add_subdirectory (tools/playground)
|
|
|
|
add_subdirectory (tools/playground)
|
|
|
|
add_subdirectory (tools/supported)
|
|
|
|
add_subdirectory (tools/supported)
|
|
|
|
add_subdirectory (doc)
|
|
|
|
add_subdirectory (doc)
|
|
|
|