diff options
author | click <none@none> | 2010-08-28 18:49:17 +0200 |
---|---|---|
committer | click <none@none> | 2010-08-28 18:49:17 +0200 |
commit | dcaeceaf6b3e4cfe16d5c5fbad7473dfb14ba4dd (patch) | |
tree | 90f05c04805999930494e76e6e286865a8c1a96a /cmake/options.cmake | |
parent | 8f97ba844089dfbf312babed6dc4dca24269ebc8 (diff) |
Buildsystem: Change over to a little more flexible method of using the CMake buildsystem (partially WIP) - REQUIRES RERUNNING CMAKE!
For finding out the "standard" parameters examine the cmake/options.cmake file and adjacent files for your platform/compiler.
For platform settings -> cmake/platform/*/settings.cmake
For compiler settings -> cmake/compiler/*/settings.cmake
Some more testing and changes IS required, but I don't have OSX/XCode to kill off the main issues
--HG--
branch : trunk
rename : cmake/FindPlatform.cmake => cmake/macros/CheckPlatform.cmake
rename : cmake/FindACE.cmake => cmake/macros/FindACE.cmake
rename : cmake/FindMySQL.cmake => cmake/macros/FindMySQL.cmake
rename : cmake/FindOpenSSL.cmake => cmake/macros/FindOpenSSL.cmake
rename : cmake/FindPCHSupport.cmake => cmake/macros/FindPCHSupport.cmake
rename : cmake/FindReadline.cmake => cmake/macros/FindReadline.cmake
rename : cmake/cmake_uninstall.cmake.in => cmake_uninstall.cmake.in
Diffstat (limited to 'cmake/options.cmake')
-rw-r--r-- | cmake/options.cmake | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake new file mode 100644 index 00000000000..74f25621d44 --- /dev/null +++ b/cmake/options.cmake @@ -0,0 +1,99 @@ +# Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/> +# +# This file is free software; as a special exception the author gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +option(SERVERS "Build worldserver and authserver" 1) +option(SCRIPTS "Build core with scripts included" 1) +option(TOOLS "Build map/vmap extraction/assembler tools" 0) +option(USE_SCRIPTPCH "Use precompiled headers when compiling scripts" 1) +option(USE_COREPCH "Use precompiled headers when compiling servers" 1) +option(USE_SFMT "Use SFMT as random numbergenerator" 0) +option(WITH_WARNINGS "Show all warnings during compile" 1) +option(WITH_COREDEBUG "Include additional debug-code in core" 0) +option(WITH_SQL "Copy SQL files during installation" 0) + +# output generic information about the core and buildtype chosen + +message("") +message("* TrinityCore revision : ${HG_REVISION}") +if( UNIX ) + message("* Build binaries in : ${CMAKE_BUILD_TYPE} mode") +endif() +message("") + +# output information about installation-directories and locations + +message("* Install core to : ${CMAKE_INSTALL_PREFIX}") +if( UNIX ) + message("* Install libraries to : ${LIBSDIR}") + message("* Install configs to : ${CONF_DIR}") +endif() +message("") + +# Show infomation about the options selected during configuration + +if( SERVERS ) + message("* Build world/auth : Yes (default)") +else() + message("* Build world/authserver : No") +endif() + +if( SCRIPTS ) + message("* Build with scripts : Yes (default)") + add_definitions(-DSCRIPTS) +else() + message("* Build with scripts : No") + set(SCRIPTPCH 0) +endif() + +if( TOOLS ) + message("* Build map/vmap tools : Yes") +else() + message("* Build map/vmap tools : No (default)") +endif() + +if( WITH_SQL ) + message("* Install SQL-files : Yes") +else() + message("* Install SQL-files : No (default)") +endif() + +if( USE_COREPCH ) + message("* Build core w/PCH : Yes (default)") +else() + message("* Build core w/PCH : No") +endif() + +if( USE_SCRIPTPCH ) + message("* Build scripts w/PCH : Yes (default)") +else() + message("* Build scripts w/PCH : No") +endif() + +if( USE_SFMT ) + message("* Use SFMT for RNG : Yes") + add_definitions(-DUSE_SFMT_FOR_RNG) +else() + message("* Use SFMT for RNG : No (default)") +endif() + +if( WITH_WARNINGS ) + message("* Show all warnings : Yes") +else() + message("* Show compile-warnings : No (default)") +endif() + +if( WITH_COREDEBUG ) + message("* Use coreside debug : Yes") + add_definitions(-DTRINITY_DEBUG) +else() + message("* Use coreside debug : No (default)") +endif() + +message("") |