From 1422633beca86f74af07d53133ef95c5fd045108 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Sun, 7 Oct 2012 20:40:15 +0200 Subject: [PATCH] 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 --- neo/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index e159bcb7..c53afadb 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -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() +