Skip to content
This repository
Newer
Older
100644 78 lines (61 sloc) 2.118 kb
2457c5a1 »
2010-06-09 Add copyright notes to CMake files
1 # Copyright (C) 2005-2010 Trinity <http://www.trinitycore.org/>
2 #
3 # This file is free software; as a special exception the author gives
4 # unlimited permission to copy and/or distribute it, with or without
5 # modifications, as long as this notice is preserved.
6 #
7 # This program is distributed in the hope that it will be useful, but
8 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
dcaeceaf »
2010-08-28 Buildsystem: Change over to a little more flexible method of using th…
11 # Set projectname (must be done AFTER setting configurationtypes)
f213f2c7 »
2010-07-29 Buildsystem/CMake: Include core/script headerfiles in generated MSVC-…
12 project(TrinityCore)
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
13
dcaeceaf »
2010-08-28 Buildsystem: Change over to a little more flexible method of using th…
14 # CMake policies (can not be handled elsewhere)
1edf80de »
2009-01-18 *Fixed version required by cmakes. - by raczman
15 cmake_minimum_required(VERSION 2.6)
d226e92e »
2010-06-14 Fix linux compileissues when compiling with scripts - I actually forg…
16 cmake_policy(SET CMP0005 OLD)
b2322042 »
2010-06-14 Remove old DO_MYSQL-params in CMakeLists.txt files - not required as …
17
dcaeceaf »
2010-08-28 Buildsystem: Change over to a little more flexible method of using th…
18 # Set RPATH-handing (CMake parameters)
19 set(CMAKE_SKIP_BUILD_RPATH 0)
20 set(CMAKE_BUILD_WITH_INSTALL_RPATH 0)
21 set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
22 set(CMAKE_INSTALL_RPATH_USE_LINK_PATH 1)
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
23
dcaeceaf »
2010-08-28 Buildsystem: Change over to a little more flexible method of using th…
24 # set macro-directory
25 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/macros")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
26
dcaeceaf »
2010-08-28 Buildsystem: Change over to a little more flexible method of using th…
27 # build in Release-mode by default if not explicitly set
28 if( NOT CMAKE_BUILD_TYPE )
29 set(CMAKE_BUILD_TYPE "Release")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
30 endif()
09ddc711 »
2009-01-17 Cmake build system for trinity
31
8d62f4e6 »
2010-08-20 Buildsystem: Add helperscripts to detect SSE2 extensions, and optimiz…
32 include(CheckCXXSourceRuns)
229dbd81 »
2009-06-29 Added check for ace/Stack_Trace.h header file,
33 include(CheckIncludeFiles)
3fa20f4c »
2010-08-28 Buildsystem: Make options load BEFORE platformchecks, so they are pre…
34
35 # turn off PCH totally if enabled (hidden setting, mainly for devs)
36 if( NOPCH )
37 set(USE_COREPCH 0)
38 set(USE_SCRIPTPCH 0)
39 endif()
40
41 # set default buildoptions and print them
42 include(cmake/options.cmake)
43
dcaeceaf »
2010-08-28 Buildsystem: Change over to a little more flexible method of using th…
44 include(CheckPlatform)
8d62f4e6 »
2010-08-20 Buildsystem: Add helperscripts to detect SSE2 extensions, and optimiz…
45
dcaeceaf »
2010-08-28 Buildsystem: Change over to a little more flexible method of using th…
46 # basic packagesearching and setup (further support will be needed, this is a preliminary release!)
8d62f4e6 »
2010-08-20 Buildsystem: Add helperscripts to detect SSE2 extensions, and optimiz…
47 find_package(PCHSupport)
48 find_package(ACE REQUIRED)
49 find_package(MySQL REQUIRED)
50 find_package(OpenSSL REQUIRED)
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
51 if( UNIX )
8d62f4e6 »
2010-08-20 Buildsystem: Add helperscripts to detect SSE2 extensions, and optimiz…
52 find_package(Readline)
53 find_package(ZLIB)
54 find_package(BZip2)
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
55 endif()
d6076931 »
2010-05-18 Add proper use of precompiled headers on linux - this removes an appr…
56
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
57 # Find current revision of downloaded sourcetree
d6076931 »
2010-05-18 Add proper use of precompiled headers on linux - this removes an appr…
58 execute_process(
f867f6d7 »
2010-06-08 Get g3dlib, zlib and jemalloc to build again
59 COMMAND hg tip --template {rev}
60 WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
61 OUTPUT_VARIABLE HG_REVISION
09ddc711 »
2009-01-17 Cmake build system for trinity
62 )
63
cf841c83 »
2010-08-28 Buildsystem: Split out the resultlist from the options, and print it …
64 # print out the results before continuing
65 include(cmake/showoptions.cmake)
66
dcaeceaf »
2010-08-28 Buildsystem: Change over to a little more flexible method of using th…
67 # add and generate revision.h
68 add_subdirectory(src/genrevision)
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
69
dcaeceaf »
2010-08-28 Buildsystem: Change over to a little more flexible method of using th…
70 # add dependencies
e5b00f9b »
2010-08-17 Buildsystem: Use "industry standard" foldernames on dpendencies + mov…
71 add_subdirectory(dep)
dcaeceaf »
2010-08-28 Buildsystem: Change over to a little more flexible method of using th…
72
73 # add core sources
09ddc711 »
2009-01-17 Cmake build system for trinity
74 add_subdirectory(src)
dcaeceaf »
2010-08-28 Buildsystem: Change over to a little more flexible method of using th…
75
76 # add sql-files
77 add_subdirectory(sql)
Something went wrong with that request. Please try again.