Add mod (compiling) support

If cmake is invoked with -DMODS=ON, stuff specified by
neo/mods/CMakeLists.txt (which again adds the subdirectories containing
the mods) is built.
neo/mods/ is from another repository: https://github.com/DanielGibson/dhewm3-mods
This commit is contained in:
Daniel Gibson 2012-10-07 20:40:15 +02:00
parent 1b1787bb50
commit 1422633bec

View file

@ -27,6 +27,7 @@ include(GNUInstallDirs OPTIONAL RESULT_VARIABLE GNUINSTALLDIRS)
option(CORE "Build the core" ON)
option(BASE "Build the base game code" ON)
option(D3XP "Build the d3xp game code" ON)
option(MODS "Build game code for additional mods" OFF)
option(DEDICATED "Build the dedicated server" OFF)
option(ONATIVE "Optimize for the host CPU" OFF)
option(SDL2 "Use SDL2 instead of SDL1.2" OFF)
@ -828,3 +829,8 @@ if(D3XP)
)
endif()
endif()
if (MODS)
add_subdirectory(mods)
endif()