Skip to content
This repository
Newer
Older
100644 350 lines (282 sloc) 8.169 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
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
11 #####
12 ##### Base setup for project
13 #####
14
816acb11 »
2010-08-09 BuilSystem: Clean up some small but annoying things from my earlier c…
15 #
16 # Set projectname (must be done AFTER setting configurationtypes btw...)
17 #
18
f213f2c7 »
2010-07-29 Buildsystem/CMake: Include core/script headerfiles in generated MSVC-…
19 project(TrinityCore)
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
20
21 # CMake policies
1edf80de »
2009-01-18 *Fixed version required by cmakes. - by raczman
22 cmake_minimum_required(VERSION 2.6)
d226e92e »
2010-06-14 Fix linux compileissues when compiling with scripts - I actually forg…
23 cmake_policy(SET CMP0005 OLD)
b2322042 »
2010-06-14 Remove old DO_MYSQL-params in CMakeLists.txt files - not required as …
24
8d62f4e6 »
2010-08-20 Buildsystem: Add helperscripts to detect SSE2 extensions, and optimiz…
25 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
26
6d5da7a5 »
2010-07-01 Cut down the number of compile-configurationss on CMake (Release and …
27 #
b2322042 »
2010-06-14 Remove old DO_MYSQL-params in CMakeLists.txt files - not required as …
28 # Force out-of-source build
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
29 #
30
b2322042 »
2010-06-14 Remove old DO_MYSQL-params in CMakeLists.txt files - not required as …
31 string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" BUILDING_IN_SOURCE)
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
32
33 if( BUILDING_IN_SOURCE )
34 message(FATAL_ERROR "
35 This project requires an out of source build. Remove the file 'CMakeCache.txt'
36 found in this directory before continuing, create a separate build directory
37 and run 'cmake path_to_project [options]' from there.
38 ")
39 endif()
09ddc711 »
2009-01-17 Cmake build system for trinity
40
d63b601f »
2010-06-15 First part of supporting CMake under Windows - this is WIP, and if yo…
41 #
42 # Basic packagesearching and setup (further support will be needed, this is a preliminary release!)
43 #
44
8d62f4e6 »
2010-08-20 Buildsystem: Add helperscripts to detect SSE2 extensions, and optimiz…
45 include(MacroEnsureVersion)
46 include(OptimizeForArchitecture)
47 include(AddCompilerFlag)
48 include(CheckCXXSourceRuns)
49
229dbd81 »
2009-06-29 Added check for ace/Stack_Trace.h header file,
50 include(CheckIncludeFiles)
8d62f4e6 »
2010-08-20 Buildsystem: Add helperscripts to detect SSE2 extensions, and optimiz…
51 include(FindPlatform)
52
2ea04348 »
2010-06-30 It is now possible to use CMake on windows for proper build (PCH supp…
53 if(WIN32)
e5b00f9b »
2010-08-17 Buildsystem: Use "industry standard" foldernames on dpendencies + mov…
54 set(ACE_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/dep/acelite)
2ea04348 »
2010-06-30 It is now possible to use CMake on windows for proper build (PCH supp…
55 endif()
8d62f4e6 »
2010-08-20 Buildsystem: Add helperscripts to detect SSE2 extensions, and optimiz…
56
57 find_package(PCHSupport)
58 find_package(ACE REQUIRED)
59 find_package(MySQL REQUIRED)
60 find_package(OpenSSL REQUIRED)
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
61 if( UNIX )
8d62f4e6 »
2010-08-20 Buildsystem: Add helperscripts to detect SSE2 extensions, and optimiz…
62 find_package(Readline)
63 find_package(ZLIB)
64 find_package(BZip2)
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
65 endif()
d6076931 »
2010-05-18 Add proper use of precompiled headers on linux - this removes an appr…
66
8d62f4e6 »
2010-08-20 Buildsystem: Add helperscripts to detect SSE2 extensions, and optimiz…
67 include(cmake/SSETests.cmake)
68
69 #
70 # Optimize for architecture
71 #
72
73 OptimizeForArchitecture()
74
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
75 #
d6076931 »
2010-05-18 Add proper use of precompiled headers on linux - this removes an appr…
76 # Select the Release build configuration by default.
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
77 #
78
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
79 if( NOT CMAKE_BUILD_TYPE )
f867f6d7 »
2010-06-08 Get g3dlib, zlib and jemalloc to build again
80 set(CMAKE_BUILD_TYPE "Release")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
81 endif()
d6076931 »
2010-05-18 Add proper use of precompiled headers on linux - this removes an appr…
82
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
83 #####
84 ##### Options and settings
85 #####
f867f6d7 »
2010-06-08 Get g3dlib, zlib and jemalloc to build again
86
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
87 #
88 # Set up default option-parameters for building
89 #
d6076931 »
2010-05-18 Add proper use of precompiled headers on linux - this removes an appr…
90
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
91 option(SERVERS "Build worldserver and authserver" 1)
92 option(SCRIPTS "Build worldserver with scripts included" 1)
93 option(TOOLS "Build map/vmap extraction/assembler tools" 0)
916c7f09 »
2010-08-14 Buildsystem/Linux: Deprecate and remove use of FindTermcap.cmake - it…
94 option(COREDEBUG "Build worldserver with additional debug-code included" 0)
816acb11 »
2010-08-09 BuilSystem: Clean up some small but annoying things from my earlier c…
95 option(SCRIPTPCH "Use precompiled headers when compiling scripts project" 1)
96 option(GAMEPCH "Use precompiled headers when compiling game project" 1)
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
97 option(SQL "Copy SQL files during installation" 0)
98 option(WARNINGS "Enable all compile-warnings during compile" 0)
d6076931 »
2010-05-18 Add proper use of precompiled headers on linux - this removes an appr…
99
4f9ec558 »
2010-08-10 Buildsystem/Linux: Remove -DCENTOS flag and enforce linking with ncur…
100 #
101 # Search for readline on *nixbased systems (CLI-handler)
102 #
103
d63b601f »
2010-06-15 First part of supporting CMake under Windows - this is WIP, and if yo…
104 if( UNIX )
4f9ec558 »
2010-08-10 Buildsystem/Linux: Remove -DCENTOS flag and enforce linking with ncur…
105 find_readline()
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
106 endif()
d63b601f »
2010-06-15 First part of supporting CMake under Windows - this is WIP, and if yo…
107
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
108 #
d63b601f »
2010-06-15 First part of supporting CMake under Windows - this is WIP, and if yo…
109 # Set up the installation-prefix
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
110 #
111
d63b601f »
2010-06-15 First part of supporting CMake under Windows - this is WIP, and if yo…
112 if( PREFIX )
780ed1b0 »
2010-08-11 Buildsystem: Clean up build-process on all platforms
113 set(CMAKE_INSTALL_PREFIX "${PREFIX}")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
114 endif()
34617d09 »
2010-06-13 Correction on scripts config-entry in CMakeLists.txt + some generic c…
115
03a0bcad »
2010-08-12 Buildsystem/Windows: Set preload.cmake and related function as exampl…
116 #
117 # Example: Check the CMake preload parameters (Commented out by default)
118 #
119 # Overload CMAKE_INSTALL_PREFIX if not being set properly
120 #if( WIN32 )
121 # if( NOT CYGWIN )
122 # if( NOT CMAKE_INSTALL_PREFIX )
123 # set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/bin")
124 # endif()
125 # endif()
126 #endif()
780ed1b0 »
2010-08-11 Buildsystem: Clean up build-process on all platforms
127
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
128 #
916c7f09 »
2010-08-14 Buildsystem/Linux: Deprecate and remove use of FindTermcap.cmake - it…
129 # Handle core debugmode compilation (this will require further work for proper WIN32-setups)
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
130 #
131
916c7f09 »
2010-08-14 Buildsystem/Linux: Deprecate and remove use of FindTermcap.cmake - it…
132 if( COREDEBUG )
34617d09 »
2010-06-13 Correction on scripts config-entry in CMakeLists.txt + some generic c…
133 set(CMAKE_BUILD_TYPE Debug)
a9cae005 »
2010-06-30 Remove double-created genrev-target and move the CMAKE_BUILD_TYPE-dec…
134 endif()
f8bb7afa »
2010-06-30 And even more CMake-specific cleanups (mutes most of the "non-harmful…
135
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
136 #
137 # WINDOWS/MSVC: Set up paths for where we want binaries to end up after compilation
138 #
139
8a69e50d »
2010-08-08 Buildsystem/Windows: Put all finished products (compiled executables …
140 if( MSVC )
780ed1b0 »
2010-08-11 Buildsystem: Clean up build-process on all platforms
141 # Set up MSVC to dump files in the <builddir>/bin/<buildtype>/ folder for testing builds before install
142
a7c3ac2e »
2010-08-12 Buildsystem/Windows: Adjust the installation-parameters for ACE to in…
143 # executable binaries (.exe-files, and .dll-files on DLL-capable platforms)
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
144 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
780ed1b0 »
2010-08-11 Buildsystem: Clean up build-process on all platforms
145
a7c3ac2e »
2010-08-12 Buildsystem/Windows: Adjust the installation-parameters for ACE to in…
146 # other parts like static libraries etc - commented out as it's not needed - shown here as an example only
147 #set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
780ed1b0 »
2010-08-11 Buildsystem: Clean up build-process on all platforms
148 #set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
8a69e50d »
2010-08-08 Buildsystem/Windows: Put all finished products (compiled executables …
149 endif()
150
a9cae005 »
2010-06-30 Remove double-created genrev-target and move the CMAKE_BUILD_TYPE-dec…
151 #
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
152 # Set default configuration-directory (used on NIX-based platforms only)
a9cae005 »
2010-06-30 Remove double-created genrev-target and move the CMAKE_BUILD_TYPE-dec…
153 #
8a69e50d »
2010-08-08 Buildsystem/Windows: Put all finished products (compiled executables …
154
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
155 if( NOT CONF_DIR )
156 set(CONF_DIR ${CMAKE_INSTALL_PREFIX}/etc)
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
157 endif()
09ddc711 »
2009-01-17 Cmake build system for trinity
158
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
159 set(LIBSDIR ${CMAKE_INSTALL_PREFIX}/lib)
160
161 #####
162 ##### Build-preparation
163 #####
164
165 #
166 # Create genrev object and create revision.h
167 # (Moved to subfolder to avoid cluttering up the base build-dir)
168 #
169
170 add_subdirectory(src/genrevision)
171
172 #
173 # Find current revision of downloaded sourcetree
174 #
175
d6076931 »
2010-05-18 Add proper use of precompiled headers on linux - this removes an appr…
176 execute_process(
f867f6d7 »
2010-06-08 Get g3dlib, zlib and jemalloc to build again
177 COMMAND hg tip --template {rev}
178 WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
179 OUTPUT_VARIABLE HG_REVISION
09ddc711 »
2009-01-17 Cmake build system for trinity
180 )
181
916c7f09 »
2010-08-14 Buildsystem/Linux: Deprecate and remove use of FindTermcap.cmake - it…
182 if(DEFINED NOPCH)
183 set(SCRIPTPCH 0)
184 set(GAMEPCH 0)
185 endif()
186
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
187 #
188 # Output some generic information about the core and buildtype chosen
189 #
190
816acb11 »
2010-08-09 BuilSystem: Clean up some small but annoying things from my earlier c…
191 message("")
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
192 message("* TrinityCore revision : ${HG_REVISION}")
916c7f09 »
2010-08-14 Buildsystem/Linux: Deprecate and remove use of FindTermcap.cmake - it…
193 if( UNIX )
194 message("* Build binaries in : ${CMAKE_BUILD_TYPE} mode")
195 endif()
34617d09 »
2010-06-13 Correction on scripts config-entry in CMakeLists.txt + some generic c…
196 message("")
09ddc711 »
2009-01-17 Cmake build system for trinity
197
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
198 #
199 # Output information about installation-directories and locations
200 #
f867f6d7 »
2010-06-08 Get g3dlib, zlib and jemalloc to build again
201
780ed1b0 »
2010-08-11 Buildsystem: Clean up build-process on all platforms
202 message("* Install core to : ${CMAKE_INSTALL_PREFIX}")
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
203 if( UNIX )
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
204 message("* Install libraries to : ${LIBSDIR}")
205 message("* Install configs to : ${CONF_DIR}")
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
206 endif()
780ed1b0 »
2010-08-11 Buildsystem: Clean up build-process on all platforms
207 message("")
09ddc711 »
2009-01-17 Cmake build system for trinity
208
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
209 #
210 # Show infomation about the options selected during configuration
211 #
09ddc711 »
2009-01-17 Cmake build system for trinity
212
f213f2c7 »
2010-07-29 Buildsystem/CMake: Include core/script headerfiles in generated MSVC-…
213 if( SERVERS )
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
214 message("* Build servers : Yes (default)")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
215 else()
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
216 message("* Build servers : No")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
217 endif()
09ddc711 »
2009-01-17 Cmake build system for trinity
218
780ed1b0 »
2010-08-11 Buildsystem: Clean up build-process on all platforms
219 if( GAMEPCH )
220 message("* Build game w/PCH : Yes (default)")
221 else()
222 message("* Build game w/PCH : No")
223 endif()
224
bfc6dec0 »
2010-07-27 Cut away DO_*-parts from buildsystem and specific files checking for it.
225 if( SCRIPTS )
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
226 message("* Build with scripts : Yes (default)")
bfc6dec0 »
2010-07-27 Cut away DO_*-parts from buildsystem and specific files checking for it.
227 add_definitions(-DSCRIPTS)
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
228 else()
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
229 message("* Build with scripts : No")
780ed1b0 »
2010-08-11 Buildsystem: Clean up build-process on all platforms
230 set(SCRIPTPCH 0)
231 endif()
232
233 if( SCRIPTPCH )
234 message("* Build scripts w/PCH : Yes (default)")
235 else()
236 message("* Build scripts w/PCH : No")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
237 endif()
ce620223 »
2010-01-21 restore work scripts in *nix system
238
bfc6dec0 »
2010-07-27 Cut away DO_*-parts from buildsystem and specific files checking for it.
239 if( TOOLS )
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
240 message("* Build map/vmap tools : Yes")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
241 else()
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
242 message("* Build map/vmap tools : No (default)")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
243 endif()
09ddc711 »
2009-01-17 Cmake build system for trinity
244
916c7f09 »
2010-08-14 Buildsystem/Linux: Deprecate and remove use of FindTermcap.cmake - it…
245 if( COREDEBUG )
246 message("* Use coreside debug : Yes")
33829ed4 »
2010-08-03 Clean up some crap - remove generated config.h (old junk) and also re…
247 add_definitions(-DTRINITY_DEBUG)
248 if(CMAKE_COMPILER_IS_GNUCXX)
249 add_definitions(-g)
79dcd585 »
2010-08-09 BuildSystem/Windows: Force creating debug information in Release buil…
250 endif()
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
251 else()
916c7f09 »
2010-08-14 Buildsystem/Linux: Deprecate and remove use of FindTermcap.cmake - it…
252 message("* Use coreside debug : No (default)")
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
253 endif()
254
bfc6dec0 »
2010-07-27 Cut away DO_*-parts from buildsystem and specific files checking for it.
255 if( WARNINGS )
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
256 message("* Show all warnings : Yes")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
257 if( UNIX )
d63b601f »
2010-06-15 First part of supporting CMake under Windows - this is WIP, and if yo…
258 add_definitions(-Wall -Wfatal-errors -Wextra)
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
259 endif()
260 else()
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
261 message("* Show compile-warnings : No (default)")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
262 if( UNIX )
d63b601f »
2010-06-15 First part of supporting CMake under Windows - this is WIP, and if yo…
263 add_definitions(--no-warnings) # makes build look nice, no warnings shown at all, only errors
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
264 elseif( WIN32 )
fc1ed4b1 »
2010-06-30 Make CMake-based building on Windows a little bit more silent + allow…
265 # Disable warnings in Visual Studio 8 and above
266 if(MSVC AND NOT CMAKE_GENERATOR MATCHES "Visual Studio 7")
a7c3ac2e »
2010-08-12 Buildsystem/Windows: Adjust the installation-parameters for ACE to in…
267 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619")
268 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619")
fc1ed4b1 »
2010-06-30 Make CMake-based building on Windows a little bit more silent + allow…
269 endif()
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
270 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
271 endif()
272 endif()
ced575a3 »
2009-03-18 * Added DO_WARN (-DDO_WARN=1) option to CMake. This can help find/rem…
273
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
274 #
275 # Inform if we will install SQL-files or not
276 #
277
bfc6dec0 »
2010-07-27 Cut away DO_*-parts from buildsystem and specific files checking for it.
278 if( SQL )
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
279 message("* Install SQL-files : Yes")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
280 else()
3002300e »
2010-08-10 Backed out changeset 2f79fd19c2c5 - needs some more thought, sorry - …
281 message("* Install SQL-files : No (default)")
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
282 endif()
816acb11 »
2010-08-09 BuilSystem: Clean up some small but annoying things from my earlier c…
283 message("")
a54624fa »
2010-06-07 Add some messages to main cmake file
284
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
285 #####
286 ##### Tweaks to make things operate well
287 #####
34617d09 »
2010-06-13 Correction on scripts config-entry in CMakeLists.txt + some generic c…
288
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
289 #
d63b601f »
2010-06-15 First part of supporting CMake under Windows - this is WIP, and if yo…
290 # Little tweak for OS X
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
291 #
292
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
293 if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
d6076931 »
2010-05-18 Add proper use of precompiled headers on linux - this removes an appr…
294 set(MACOSX 1)
0d73f6cc »
2010-08-12 BuildSystem/OSX: Utilize system-installed crypto.dylib - should help …
295 set(OSX_LIBS /usr/lib/libcrypto.dylib)
6f7c53b7 »
2009-02-20 fix cmake/ACE for freeBSD and Mac OSX
296 add_definitions(-D__ASSERTMACROS__)
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
297 endif()
6f7c53b7 »
2009-02-20 fix cmake/ACE for freeBSD and Mac OSX
298
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
299 #
fc1ed4b1 »
2010-06-30 Make CMake-based building on Windows a little bit more silent + allow…
300 # Some small tweaks for Visual Studio 7 and above.
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
301 #
302
fc1ed4b1 »
2010-06-30 Make CMake-based building on Windows a little bit more silent + allow…
303 if( MSVC )
304 # Mark 32 bit executables large address aware so they can use > 2GB address space
305 if(CMAKE_SIZEOF_VOID_P MATCHES 4)
306 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE")
307 endif()
a4af5d55 »
2010-08-18 Buildsystem/Windows: Enable multihreaded compiling on MSVC > version …
308 # Multithreaded compiling on VS
309 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
8d62f4e6 »
2010-08-20 Buildsystem: Add helperscripts to detect SSE2 extensions, and optimiz…
310 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
fc1ed4b1 »
2010-06-30 Make CMake-based building on Windows a little bit more silent + allow…
311 endif()
312
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
313 #
314 # Set RPATH-handing (CMake parameters)
315 #
316
d63b601f »
2010-06-15 First part of supporting CMake under Windows - this is WIP, and if yo…
317 set(CMAKE_SKIP_BUILD_RPATH 0)
318 set(CMAKE_BUILD_WITH_INSTALL_RPATH 0)
d6076931 »
2010-05-18 Add proper use of precompiled headers on linux - this removes an appr…
319 set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
d63b601f »
2010-06-15 First part of supporting CMake under Windows - this is WIP, and if yo…
320 set(CMAKE_INSTALL_RPATH_USE_LINK_PATH 1)
0dd0a1cb »
2009-01-18 More fixes for Cmake by raczman
321
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
322 #####
323 ##### Start filling in the blanks, and build the project
324 #####
325
326 #
327 # Create uninstall-object for UNIX platforms
328 #
329
330 if( UNIX )
780ed1b0 »
2010-08-11 Buildsystem: Clean up build-process on all platforms
331 configure_file(
332 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
333 "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
334 IMMEDIATE @ONLY
335 )
336 add_custom_target(uninstall
337 "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
338 )
6729518d »
2010-08-09 Buildsytem/All: Clean up main CMakeLists.txt a tad bit
339 endif()
340
341 #
342 # Enter the different builddirectories and start working
343 #
344
e5b00f9b »
2010-08-17 Buildsystem: Use "industry standard" foldernames on dpendencies + mov…
345 add_subdirectory(dep)
09ddc711 »
2009-01-17 Cmake build system for trinity
346 add_subdirectory(src)
bfc6dec0 »
2010-07-27 Cut away DO_*-parts from buildsystem and specific files checking for it.
347 if( SQL )
35aa050d »
2010-06-24 Temporary fix linux build (back to cmake 2.6.0 standards untill a bet…
348 add_subdirectory(sql)
349 endif()
Something went wrong with that request. Please try again.