diff --git a/CMakeLists.txt b/CMakeLists.txt index 2754643c2..4deb91234 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,39 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ) +# define all options here +option(DEBUG "Debug mode" OFF) +option(TBB_USE_EXTERNAL "Use external TBB" OFF) +option(USE_STD_MALLOC "Use standard malloc instead of TBB" OFF) +option(ACE_USE_EXTERNAL "Use external ACE" OFF) +if(PCHSupport_FOUND AND WIN32) # TODO: why only enable it on windows by default? + option(PCH "Use precompiled headers" ON) +else() + option(PCH "Use precompiled headers" OFF) +endif() +# TODO: options that should be checked/created: +#option(CLI "With CLI" ON) +#option(RA "With Remote Access" OFF) +#option(SQL "Copy SQL files" OFF) +#option(TOOLS "Build tools" OFF) + +# Output description of this script +message("") +message( + "This script builds the MaNGOS server. + Options that can be used in order to configure the process: + CMAKE_INSTALL_PREFIX Path where the server should be installed to + PCH Use precompiled headers + DEBUG Debug mode + TBB_USE_EXTERNAL Use external TBB + USE_STD_MALLOC Use standard malloc instead of TBB + ACE_USE_EXTERNAL Use external ACE + To set an option simply type -D