Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 880 lines (745 sloc) 26.927 kb
6dd3c003 » dscharrer
2011-11-17 [cmake] Relax minimum CMake version requirement for non-MSVC compilers.
1 project(ArxLibertatis)
2
3 if(MSVC)
4 # CMake 2.8.5 or newer is needed for CMAKE_LIBRARY_ARCHITECTURE support.
5 cmake_minimum_required(VERSION 2.8.5)
6 # Change CMAKE_LIBRARY_ARCHITECTURE to ensure the right libs are used
7 if(CMAKE_CL_64)
8 set(CMAKE_LIBRARY_ARCHITECTURE "x64")
9 else()
10 set(CMAKE_LIBRARY_ARCHITECTURE "x86")
11 endif(CMAKE_CL_64)
12 else()
13 cmake_minimum_required(VERSION 2.8)
14 endif()
9c3e84d9 » lubosz
2011-01-16 stubby cmake build
15
cbf67dd0 » dscharrer
2011-07-19 Use boost::filesystem to load non-packed asset files.
16 # For custom cmake modules.
17 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
18
12825f45 » dscharrer
2011-06-25 Check size of char in CMakeLists.txt
19 include(CheckTypeSize)
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
20 include(CheckSymbolExists)
21 include(CheckCXXSourceCompiles)
22
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
23 include(BuildSystem)
cbf67dd0 » dscharrer
2011-07-19 Use boost::filesystem to load non-packed asset files.
24 include(CompileCheck)
1ea3ead4 » dscharrer
2011-10-03 Automatically generate a version string at build time.
25 include(VersionString)
e067d34b » dscharrer
2011-03-13 Add a ARX_FORCE_32BIT option to force a 32-bit build on 64-bit systems.
26
b7b07356 » SebastienLussier
2011-09-12 [CMake] Changed create_source_groups() to create a hierarchy that rep…
27 # Accepts a variable holding the source files
28 # and creates source groups (for VS, Xcode etc)
29 # that replicate the folder hierarchy on disk
30 macro( create_source_groups source_files_variable )
31 foreach( source_file ${${source_files_variable}} )
32 string( REGEX REPLACE ${CMAKE_CURRENT_SOURCE_DIR} "" relative_directory "${source_file}")
33 string( REGEX REPLACE "[\\\\/][^\\\\/]*$" "" relative_directory "${relative_directory}")
34 string( REGEX REPLACE "^[\\\\/]" "" relative_directory "${relative_directory}")
35
36 if( WIN32 )
37 string( REGEX REPLACE "/" "\\\\" relative_directory "${relative_directory}" )
38 endif( WIN32 )
39
40 source_group( "${relative_directory}" FILES ${source_file} )
41 endforeach()
42 endmacro()
5c2d73a8 » SebastienLussier
2011-05-04 Fixed VC2010 warnings/errors/projects
43
1f84e235 » SebastienLussier
2011-02-16 Added support for unity build (set env var "ARX_USE_UNITYBUILD=1" to …
44 ##############################################################################
45
5d3c963c » dscharrer
2011-02-21 Don't build tests by default as they don't work.
46 option(ARX_BUILD_TESTS "Build tests" OFF)
eb66ca04 » dscharrer
2011-02-21 Add descriptions to options in CMakeLists.txt so the default values d…
47 option(ARX_BUILD_TOOLS "Build tools" ON)
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
48 option(ARX_BUILD_EDITOR "Build editor" OFF)
05cc8a66 » dscharrer
2011-06-01 Make building .scn file support optional. (raw unprocessed scenes, no…
49 option(ARX_BUILD_EDIT_LOADSAVE "Build save/load functions only used by the editor" ON)
eb66ca04 » dscharrer
2011-02-21 Add descriptions to options in CMakeLists.txt so the default values d…
50 option(ARX_USE_UNITYBUILD "Unity build" OFF)
a513d90b » dscharrer
2011-02-21 Add option to enbale GLIBC runtime debug checks.
51 option(ARX_DEBUG_EXTRA "Expensive debug options" OFF)
41d57f0d » dscharrer
2011-04-30 Make building the OpenAL and DirectSound backends optional.
52 option(ARX_USE_OPENAL "Build the OpenAL audio backend." ON)
7de379a4 » dscharrer
2011-08-17 Disable DirectX backends on linux; remove the ARX_FORCE_32BIT option;…
53 option(ARX_USE_DSOUND "Build the DirectSound audio backend." ON)
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
54 option(ARX_USE_OPENGL "Build the OpenGL renderer backend." ON)
365d73b9 » SebastienLussier
2011-09-06 First working implementation of Arx using DirectX 9 (D3D9 & DInput8)
55 option(ARX_USE_D3D9 "Build the Direct3D 9 renderer backend." ON)
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
56 option(ARX_USE_SDL "Build the SDL windowing backend." ON)
365d73b9 » SebastienLussier
2011-09-06 First working implementation of Arx using DirectX 9 (D3D9 & DInput8)
57 option(ARX_USE_DINPUT8 "Build the DirectInput 8 input backend." ON)
e067d34b » dscharrer
2011-03-13 Add a ARX_FORCE_32BIT option to force a 32-bit build on 64-bit systems.
58
7de379a4 » dscharrer
2011-08-17 Disable DirectX backends on linux; remove the ARX_FORCE_32BIT option;…
59 if((NOT LAST_CMAKE_CXX_FLAGS STREQUAL CMAKE_CXX_FLAGS) OR (NOT LAST_CMAKE_CXX_COMPILER STREQUAL CMAKE_CXX_COMPILER))
e067d34b » dscharrer
2011-03-13 Add a ARX_FORCE_32BIT option to force a 32-bit build on 64-bit systems.
60 force_recheck_library(DevIL IL)
61 force_recheck_library(ZLIB)
62 force_recheck_library(Freetype)
63 force_recheck_library(Threads)
3d874d19 » dscharrer
2011-04-11 Check if we can actually link against teh found OpenAL library.
64 force_recheck_library(OpenAL)
c5fb0d8a » dscharrer
2011-05-12 Check if we can link against the OpenGL library.
65 force_recheck_library(OpenGL)
d140a056 » dscharrer
2011-08-14 Start implementing OpenGLRenderer.
66 force_recheck_library(GLEW)
519b7f1a » dscharrer
2011-07-18 Add Boost as a dependency.
67 force_recheck_library(Boost)
68 unset(Boost_INCLUDE_DIR CACHE)
7de379a4 » dscharrer
2011-08-17 Disable DirectX backends on linux; remove the ARX_FORCE_32BIT option;…
69 set(LAST_CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" CACHE INTERNAL "The last C++ compiler flags.")
70 set(LAST_CMAKE_CXX_COMPILER "${CMAKE_CXX_COMPILER}" CACHE INTERNAL "The last C++ compiler.")
e067d34b » dscharrer
2011-03-13 Add a ARX_FORCE_32BIT option to force a 32-bit build on 64-bit systems.
71 endif()
a36e2b1c » SebastienLussier
2011-02-16 Sort the unity build files list + changed ARX_USE_UNITYBUILD to a cma…
72
1c5f4e9a » dscharrer
2011-08-25 Fix wine build.
73 if(WINE)
74 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -U_WIN32 -U__CYGWIN__ -U__WIN32__ -UWIN32")
75 set(HAVE_WINAPI 1)
76 elseif(WIN32)
6ea23a67 » dscharrer
2011-09-09 Fix MinGW32 build, improve the crash handler.
77 if(NOT MSVC)
78 # We need to define WINVER for MinGW32 when requiring anything newer than Win95 / WinNT
79 add_definitions(-DWINVER=0x0500) # Require at least Windows 2000
80 endif()
8a115ab3 » dscharrer
2011-08-18 Don't check for OpenGL libraries when using winelib.
81 set(HAVE_WINAPI 1)
82 else()
83 set(HAVE_WINAPI 0)
84 endif()
85
86 if(NOT HAVE_WINAPI)
87 # The is no DirectX under linux
365d73b9 » SebastienLussier
2011-09-06 First working implementation of Arx using DirectX 9 (D3D9 & DInput8)
88 set(ARX_USE_D3D9 OFF)
8a115ab3 » dscharrer
2011-08-18 Don't check for OpenGL libraries when using winelib.
89 set(ARX_USE_DSOUND OFF)
365d73b9 » SebastienLussier
2011-09-06 First working implementation of Arx using DirectX 9 (D3D9 & DInput8)
90 set(ARX_USE_DINPUT8 OFF)
91 else()
92 if(ARX_USE_D3D9)
93 find_package(DirectX REQUIRED)
94 endif()
8a115ab3 » dscharrer
2011-08-18 Don't check for OpenGL libraries when using winelib.
95 endif()
96
9ca39c4f » SebastienLussier
2011-03-02 Added freetype using find_package() in CMakeList.txt
97 find_package(Freetype REQUIRED)
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
98 find_package(DevIL REQUIRED)
99 find_package(ZLIB REQUIRED)
100 find_package(Threads REQUIRED)
c105d075 » dscharrer
2011-06-27 Make building the OpenGLRenderer optional, disabled by default.
101 if(ARX_USE_OPENGL)
102 find_package(OpenGL REQUIRED)
d140a056 » dscharrer
2011-08-14 Start implementing OpenGLRenderer.
103 find_package(GLEW REQUIRED)
c105d075 » dscharrer
2011-06-27 Make building the OpenGLRenderer optional, disabled by default.
104 endif()
3b2fea86 » SebastienLussier
2011-05-07 Fix bad merge + issue with std::vsnprintf
105 if(ARX_USE_OPENAL)
b43b234b » dscharrer
2011-04-30 Make the OpenAL effect extension optional so we can build against old…
106 find_package(OpenAL 1.1 REQUIRED)
107 find_package(OpenALEFX)
41d57f0d » dscharrer
2011-04-30 Make building the OpenAL and DirectSound backends optional.
108 endif()
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
109 find_package(Doxygen)
110 find_package(PythonInterp)
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
111 if(ARX_USE_SDL)
1c495259 » SebastienLussier
2011-09-28 Updated CMakeLists.txt to add 64-bit support under Windows + misc cha…
112 set(SDL_BUILDING_LIBRARY 1) # Required to avoid linking with SDLmain...
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
113 find_package(SDL 1.2 EXACT REQUIRED)
114 endif()
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
115
8c6e31b9 » SebastienLussier
2011-07-18 Link statically with Boost under msvc
116 if(MSVC)
117 # Link statically with Boost under Windows
118 set(Boost_USE_STATIC_LIBS ON)
119 endif(MSVC)
b5747632 » dscharrer
2011-07-28 Add a POSIX filesystem implementation that will be used if Boost file…
120
b2c3ef75 » dscharrer
2011-12-10 Add a separate fs::path class for filesystem paths.
121 set(BOOST_COMPONENTS program_options)
4db4d9cf » dscharrer
2011-12-08 Detect user/data directory locations.
122 find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
123
124 mark_as_advanced(IL_INCLUDE_DIR)
125 mark_as_advanced(ILUT_LIBRARIES)
126 mark_as_advanced(ILU_LIBRARIES)
127 mark_as_advanced(IL_LIBRARIES)
3e661acd » lubosz
2011-01-28 options for not buildings tests and tools
128
7a4b0580 » lubosz
2011-01-31 fixed formatting and include folder
129 set(SRC_DIR src)
130 set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
5c2d73a8 » SebastienLussier
2011-05-04 Fixed VC2010 warnings/errors/projects
131
1c495259 » SebastienLussier
2011-09-28 Updated CMakeLists.txt to add 64-bit support under Windows + misc cha…
132 if(MSVC)
5c2d73a8 » SebastienLussier
2011-05-04 Fixed VC2010 warnings/errors/projects
133 # Remove targets we don't really use (RelWithDebInfo, MinSizeRel)
1c495259 » SebastienLussier
2011-09-28 Updated CMakeLists.txt to add 64-bit support under Windows + misc cha…
134 # TODO - Does not seem to work...
5c2d73a8 » SebastienLussier
2011-05-04 Fixed VC2010 warnings/errors/projects
135 set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Using only Debug and Release" FORCE)
9c8ee72f » slussier
2011-01-29 Now builds under Windows with MSVC. Removed a lot of warnings, but a …
136
137 # Disable deprecation warnings
90b2db26 » SebastienLussier
2011-01-24 Updated CMakeLists.txt to generate nicer vs project
138 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
9c8ee72f » slussier
2011-01-29 Now builds under Windows with MSVC. Removed a lot of warnings, but a …
139 add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
a918ef48 » SebastienLussier
2011-01-30 Fixed sources groups to fit new folder structure
140 add_definitions(-D_SCL_SECURE_NO_WARNINGS)
4ef14837 » SebastienLussier
2012-01-05 Use boost auto linking feature when building with MSVC
141 add_definitions(/wd4995) # 'func': name was marked as #pragma deprecated
9c8ee72f » slussier
2011-01-29 Now builds under Windows with MSVC. Removed a lot of warnings, but a …
142
d0d4145f » SebastienLussier
2011-02-06 * Switched to lowercase types (ex: s32 instead of S32)
143 # TEMP - disable warning caused by the F2L removal
4ef14837 » SebastienLussier
2012-01-05 Use boost auto linking feature when building with MSVC
144 add_definitions(/wd4244) # Conversion from 'float' to 'long', possible loss of data
1c495259 » SebastienLussier
2011-09-28 Updated CMakeLists.txt to add 64-bit support under Windows + misc cha…
145
146 # TEMP - disable warning caused by conversion from a 64-bit type to a 32-bit one...
147 if(CMAKE_CL_64)
4ef14837 » SebastienLussier
2012-01-05 Use boost auto linking feature when building with MSVC
148 add_definitions(/wd4267) # Conversion from 'size_t' to 'xxx', possible loss of data
1c495259 » SebastienLussier
2011-09-28 Updated CMakeLists.txt to add 64-bit support under Windows + misc cha…
149 endif()
0a51801b » SebastienLussier
2011-07-08 msvc - Removed some costly checks when building without ARX_DEBUG_EXTRA
150
151 if(NOT ARX_DEBUG_EXTRA)
152 add_definitions(-D_HAS_ITERATOR_DEBUGGING=0)
153 add_definitions(-D_SECURE_SCL=0)
154 add_definitions(-D_SECURE_SCL_THROWS=0)
155 add_definitions(-D_ITERATOR_DEBUG_LEVEL=0)
156 endif()
5c2d73a8 » SebastienLussier
2011-05-04 Fixed VC2010 warnings/errors/projects
157
1d0faae1 » SebastienLussier
2011-07-23 Disabled exception handling and RTTI
158 # Disable exceptions & rtti
1c495259 » SebastienLussier
2011-09-28 Updated CMakeLists.txt to add 64-bit support under Windows + misc cha…
159 add_definitions(/wd4530) # C++ exception handling was used but /EHsc was not selected.
160 add_definitions(/GR-) # No RTTI
161
162 foreach(flag_var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
fd62179e » SebastienLussier
2012-01-05 Disable run time checks when building with MSVC
163 # Disable Run time checks
164 string(REGEX REPLACE "/RTC1" "" ${flag_var} "${${flag_var}}")
165
1c495259 » SebastienLussier
2011-09-28 Updated CMakeLists.txt to add 64-bit support under Windows + misc cha…
166 # Change runtime library from "Multi-threaded Debug DLL" to "Multi-threaded DLL"
4ef14837 » SebastienLussier
2012-01-05 Use boost auto linking feature when building with MSVC
167 string(REGEX REPLACE "/MDd" "/MD" ${flag_var} "${${flag_var}}")
50042967 » dscharrer
2011-11-09 Fix some mingw32 compile issues.
168
1c495259 » SebastienLussier
2011-09-28 Updated CMakeLists.txt to add 64-bit support under Windows + misc cha…
169 # Remove definition of _DEBUG as it might conflict with libs we're linking with
50042967 » dscharrer
2011-11-09 Fix some mingw32 compile issues.
170 string(REGEX REPLACE "/D_DEBUG" "/DNDEBUG" ${flag_var} "${${flag_var}}")
1c495259 » SebastienLussier
2011-09-28 Updated CMakeLists.txt to add 64-bit support under Windows + misc cha…
171 endforeach(flag_var)
50042967 » dscharrer
2011-11-09 Fix some mingw32 compile issues.
172
1c495259 » SebastienLussier
2011-09-28 Updated CMakeLists.txt to add 64-bit support under Windows + misc cha…
173 # Avoid warning during link
174 set(CMAKE_EXE_LINKER_FLAGS /NODEFAULTLIB:LIBCMT)
175
50042967 » dscharrer
2011-11-09 Fix some mingw32 compile issues.
176 # This is needed to use ZLIB as a DLL
1c495259 » SebastienLussier
2011-09-28 Updated CMakeLists.txt to add 64-bit support under Windows + misc cha…
177 add_definitions(-DZLIB_WINAPI)
1d0faae1 » SebastienLussier
2011-07-23 Disabled exception handling and RTTI
178
ab07b502 » dscharrer
2011-02-21 Use consistent casing in CMakeLists.txt
179 else(MSVC)
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
180
8449180f » dscharrer
2011-03-07 Fix compile errors in 64-bit build.
181 # Check the dependencies so there won't by cryptic link errors later on when found libraries have the wrong architecture (32- vs. 64-bit)
822c9c07 » dscharrer
2011-05-18 Fix support for non-wine, non-msvc compilers (like mingw) in CMakeLis…
182 if(CMAKE_THREAD_LIBS_INIT)
183 check_link_library(Threads CMAKE_THREAD_LIBS_INIT)
184 endif()
26f3a282 » dscharrer
2011-04-11 If we cannot link to the exact libraries found by cmake try linking a…
185 check_link_library(DevIL IL_LIBRARIES IL)
186 check_link_library(ZLIB ZLIB_LIBRARIES)
187 check_link_library(Freetype FREETYPE_LIBRARIES)
41d57f0d » dscharrer
2011-04-30 Make building the OpenAL and DirectSound backends optional.
188 if(ARX_USE_OPENAL)
189 check_link_library(OpenAL OPENAL_LIBRARY)
190 endif()
c105d075 » dscharrer
2011-06-27 Make building the OpenGLRenderer optional, disabled by default.
191 if(ARX_USE_OPENGL)
192 check_link_library(OpenGL OPENGL_LIBRARIES)
d140a056 » dscharrer
2011-08-14 Start implementing OpenGLRenderer.
193 check_link_library(GLEW GLEW_LIBRARIES)
c105d075 » dscharrer
2011-06-27 Make building the OpenGLRenderer optional, disabled by default.
194 endif()
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
195 if(ARX_USE_SDL)
196 check_link_library(SDL SDL_LIBRARY)
197 endif()
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
198
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
199 set(CMAKE_REQUIRED_DEFINITIONS "-D_POSIX_C_SOURCE=199309")
200 set(CMAKE_REQUIRED_LIBRARIES "-lrt")
a27f5b8c » dscharrer
2011-08-14 Implement SDLWindow.
201 check_symbol_exists(nanosleep "time.h" HAVE_NANOSLEEP_FUNC)
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
202 check_symbol_exists(clock_gettime "time.h" HAVE_CLOCK_GETTIME)
203 unset(CMAKE_REQUIRED_DEFINITIONS)
204 unset(CMAKE_REQUIRED_LIBRARIES)
a27f5b8c » dscharrer
2011-08-14 Implement SDLWindow.
205 if(HAVE_NANOSLEEP_FUNC OR HAVE_CLOCK_GETTIME)
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
206 set(TIME_LIBRARIES "-lrt")
207 add_definitions(-D_POSIX_C_SOURCE=199309)
208 endif()
209
4db4d9cf » dscharrer
2011-12-08 Detect user/data directory locations.
210 check_include_file("wordexp.h" HAVE_WORDEXP_H)
211
3ebc8d6c » dscharrer
2011-07-31 Fix mingw32 build.
212 check_include_files("sys/stat.h;sys/errno.h;dirent.h" HAVE_POSIX_FILESYSTEM)
213
6ea23a67 » dscharrer
2011-09-09 Fix MinGW32 build, improve the crash handler.
214 check_symbol_exists(strsignal "string.h" HAVE_STRSIGNAL)
215 check_symbol_exists(fork "unistd.h" HAVE_FORK)
216 check_symbol_exists(readlink "unistd.h" HAVE_READLINK)
217 check_symbol_exists(dup2 "unistd.h" HAVE_DUP2)
218 check_symbol_exists(execlp "unistd.h" HAVE_EXECLP)
57a38b88 » dscharrer
2011-10-19 [fs] Make the POSIX implementation if directory_iterator threadsafe.
219 check_symbol_exists(fpathconf "unistd.h" HAVE_FPATHCONF)
220 check_symbol_exists(dirfd "dirent.h" HAVE_DIRFD)
69c63052 » dscharrer
2011-10-08 Fix mingw32 build.
221 if(NOT WIN32)
222 check_symbol_exists(isatty "unistd.h" HAVE_ISATTY)
223 endif()
6ea23a67 » dscharrer
2011-09-09 Fix MinGW32 build, improve the crash handler.
224 check_symbol_exists(waitpid "sys/wait.h" HAVE_WAITPID)
225 check_symbol_exists(kill "signal.h" HAVE_KILL)
226 check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)
227 check_symbol_exists(backtrace_symbols_fd "execinfo.h" HAVE_BACKTRACE_SYMBOLS_FD)
9490540e » dscharrer
2011-09-08 Add a crash handler that prints very detailed stack traces if gdb is …
228
5c954b98 » dscharrer
2011-02-19 Enable more warnings on gcc.
229 # Warning level
13ce9693 » dscharrer
2011-05-24 Check if compiler options are supported in CMakeLists.txt
230 add_cxxflag("-Wall")
231 add_cxxflag("-Wextra")
232 add_cxxflag("-Wformat=2")
233 add_cxxflag("-Wundef")
234 add_cxxflag("-Wpointer-arith")
235 add_cxxflag("-Wcast-qual")
236 add_cxxflag("-Woverloaded-virtual")
237 add_cxxflag("-Wlogical-op")
238
239 add_cxxflag("-Wliteral-conversion")
240 add_cxxflag("-Wshift-overflow")
ec867ea5 » dscharrer
2011-05-27 Add more warning switches.
241 add_cxxflag("-Woverflow")
242 add_cxxflag("-Wbool-conversions")
13ce9693 » dscharrer
2011-05-24 Check if compiler options are supported in CMakeLists.txt
243
244 # TODO enable:
245 # add_cxxflag("-Wconversion") # very noisy
246 # add_cxxflag("-Wsign-conversion") # very noisy
247 # add_cxxflag("-Wmissing-declarations") # to catch functions that should be marked as static
248 # add_cxxflag("-Wredundant-decls") # to catch extern definitions in .cpp files (with UNITYBUILD)
7a9b1067 » dscharrer
2011-02-21 Add debug option in CMakeLists.txt
249
98d59e9d » lubosz
2011-11-08 [build] Change debug build behavior
250 if(CMAKE_BUILD_TYPE STREQUAL Debug)
68f84152 » dscharrer
2011-11-10 [cmake] Make sure there is always only one -g* compiler option.
251
7a9b1067 » dscharrer
2011-02-21 Add debug option in CMakeLists.txt
252 #Debug
68f84152 » dscharrer
2011-11-10 [cmake] Make sure there is always only one -g* compiler option.
253 message("Debug Build")
5c2d73a8 » SebastienLussier
2011-05-04 Fixed VC2010 warnings/errors/projects
254 add_definitions(-D_DEBUG)
68f84152 » dscharrer
2011-11-10 [cmake] Make sure there is always only one -g* compiler option.
255
256 check_compiler_flag(RESULT "-g3")
257 if(NOT RESULT STREQUAL "")
258 string(REGEX REPLACE "-g(|[0-9]|gdb)" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
259 set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${RESULT}")
260 endif()
261
262 check_compiler_flag(RESULT "-O0")
263 string(REGEX REPLACE "-O[0-9]" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
264 set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${RESULT}")
265
7a9b1067 » dscharrer
2011-02-21 Add debug option in CMakeLists.txt
266 else()
68f84152 » dscharrer
2011-11-10 [cmake] Make sure there is always only one -g* compiler option.
267
7a9b1067 » dscharrer
2011-02-21 Add debug option in CMakeLists.txt
268 #Release
68f84152 » dscharrer
2011-11-10 [cmake] Make sure there is always only one -g* compiler option.
269 message("Release Build")
5c2d73a8 » SebastienLussier
2011-05-04 Fixed VC2010 warnings/errors/projects
270 add_definitions(-D_NDEBUG)
68f84152 » dscharrer
2011-11-10 [cmake] Make sure there is always only one -g* compiler option.
271
7a9b1067 » dscharrer
2011-02-21 Add debug option in CMakeLists.txt
272 endif()
f9b122d9 » lubosz
2011-02-07 define HAVE_PTHREADS in cmake
273
a513d90b » dscharrer
2011-02-21 Add option to enbale GLIBC runtime debug checks.
274 if(ARX_DEBUG_EXTRA)
275 add_definitions(-D_GLIBCXX_DEBUG) # Runtime checks for STL containers.
13ce9693 » dscharrer
2011-05-24 Check if compiler options are supported in CMakeLists.txt
276 # add_cxxflag("-Wsuggest-attribute=const")
277 # add_cxxflag("-Wsuggest-attribute=pure")
b8f5ed0d » dscharrer
2011-05-24 Enable more runtime checks for ARX_DEBUG_EXTRA.
278 add_cxxflag("-ftrapv") # to add checks for (undefined) signed integer overflow
279 add_cxxflag("-fcatch-undefined-behavior") # (clang)
ec867ea5 » dscharrer
2011-05-27 Add more warning switches.
280 add_cxxflag("-fbounds-checking")
0c666515 » dscharrer
2011-05-18 Remove the _WIN32 added by winegcc so that headers of native librarie…
281 else()
cfffed9a » dscharrer
2011-02-22 Disable unitialized variable warnings on normal builds because of fal…
282 # -Wuninitialized causes too many false positives
13ce9693 » dscharrer
2011-05-24 Check if compiler options are supported in CMakeLists.txt
283 add_cxxflag("-Wno-uninitialized")
621a4e1d » dscharrer
2011-12-11 [clang] Ignore -Wconstant-logical-operand warnings.
284 # (clang only) Conflicts with using const variables for configuration.
285 add_cxxflag("-Wno-constant-logical-operand")
7a9b1067 » dscharrer
2011-02-21 Add debug option in CMakeLists.txt
286 endif()
bc5eff0f » dscharrer
2011-02-21 Add -fwhole-program for unity build on gcc.
287
13ce9693 » dscharrer
2011-05-24 Check if compiler options are supported in CMakeLists.txt
288 if(ARX_USE_UNITYBUILD)
289 add_cxxflag("-fwhole-program")
0f6542a2 » dscharrer
2011-05-19 Add an option for link-time optimizations to CMakeLists.txt
290 endif()
291
42b09f20 » dscharrer
2011-09-11 Add workaround for issues with ekopath and -fno-rtti.
292 if(CMAKE_CXX_COMPILER_ID STREQUAL "PathScale")
293 # The standard library shipped with ekopath failes to compile with -fno-rtti
294 # See https://github.com/pathscale/stdcxx/issues/3
295 add_definitions(-D_RWSTD_NO_DYNAMIC_CAST)
296 endif()
297
ab07b502 » dscharrer
2011-02-21 Use consistent casing in CMakeLists.txt
298 endif(MSVC)
c0580329 » lubosz
2011-01-19 build debug
299
4db4d9cf » dscharrer
2011-12-08 Detect user/data directory locations.
300 # Define default user and data directories.
301 if(NOT DEFINED DATA_DIR)
302 set(DATA_DIR "arx")
303 endif()
304 if(NOT DEFINED USER_DIR)
305 set(USER_DIR "arx")
306 endif()
307 if(WIN32 AND NOT WINE)
308 if(NOT DEFINED USER_DIR_PREFIXES)
087c2ae9 » SebastienLussier
2012-01-05 Properly escape backslashes in the USER_DIR_PREFIXES variable
309 set(USER_DIR_PREFIXES "%USERPROFILE%\\\\My Documents\\\\Games")
4db4d9cf » dscharrer
2011-12-08 Detect user/data directory locations.
310 endif()
311 else()
312 if(NOT DEFINED DATA_DIR_PREFIXES)
313 set(DATA_DIR_PREFIXES "${CMAKE_INSTALL_PREFIX}/share:$XDG_DATA_DIRS")
314 endif()
315 if(NOT DEFINED USER_DIR_PREFIXES)
316 set(USER_DIR_PREFIXES "$XDG_DATA_HOME")
317 endif()
318 endif()
319 if(DATA_DIR STREQUAL "")
320 unset(DATA_DIR)
321 endif()
322 if(USER_DIR STREQUAL "")
323 unset(USER_DIR)
324 endif()
325 if(DATA_DIR_PREFIXES STREQUAL "")
326 unset(DATA_DIR_PREFIXES)
327 endif()
328 if(USER_DIR_PREFIXES STREQUAL "")
329 unset(USER_DIR_PREFIXES)
330 endif()
331
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
332 # Check that all required functionality is available.
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
333 if(CMAKE_USE_PTHREADS_INIT)
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
334 set(HAVE_PTHREADS 1)
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
335 elseif(NOT CMAKE_USE_WIN32_THREADS_INIT)
336 message(SEND_ERROR "No supported thread libraries found.")
337 endif()
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
338 if(NOT ARX_USE_OPENAL AND NOT ARX_USE_DSOUND)
339 message(WARNING "No audio backend enabled.")
340 endif()
66d2e6dc » dscharrer
2011-08-21 Don't add windows.h-specific defines under linux.
341 if((NOT HAVE_NANOSLEEP_FUNC OR NOT HAVE_CLOCK_GETTIME) AND NOT HAVE_WINAPI)
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
342 message(SEND_ERROR "Need either nanosleep and clock_gettime or WIN32.")
343 endif()
20b00674 » lubosz
2011-01-31 added mingw as option, removed wine header include for wine gcc, updated
344
90b2db26 » SebastienLussier
2011-01-24 Updated CMakeLists.txt to generate nicer vs project
345 # Preprocessor definitions
66d2e6dc » dscharrer
2011-08-21 Don't add windows.h-specific defines under linux.
346 if(HAVE_WINAPI)
347 add_definitions(-DNOMINMAX)
348 add_definitions(-DWIN32_LEAN_AND_MEAN)
349 endif(HAVE_WINAPI)
d86c3fb9 » dscharrer
2011-01-19 Enable debug output and fix related errors.
350
f748b9dc » dscharrer
2011-07-31 Fix unity build.
351 # Sources
352 set(AI_SOURCES
353 src/ai/PathFinder.cpp
354 src/ai/PathFinderManager.cpp
355 src/ai/Paths.cpp
356 )
357
358 set(ANIMATION_SOURCES
359 src/animation/Animation.cpp
360 src/animation/AnimationRender.cpp
361 src/animation/Cinematic.cpp
362 src/animation/CinematicKeyframer.cpp
363 src/animation/Intro.cpp
364 )
365
366 set(AUDIO_SOURCES
367 src/audio/Ambiance.cpp
368 src/audio/Audio.cpp
369 src/audio/AudioEnvironment.cpp
370 src/audio/AudioGlobal.cpp
371 src/audio/AudioResource.cpp
372 src/audio/AudioSource.cpp
373 src/audio/Mixer.cpp
374 src/audio/Sample.cpp
375 src/audio/Stream.cpp
376 src/audio/codec/ADPCM.cpp
377 src/audio/codec/RAW.cpp
378 src/audio/codec/WAV.cpp
379 )
380
381 set(AUDIO_OPENAL_SOURCES
382 src/audio/openal/OpenALBackend.cpp
383 src/audio/openal/OpenALSource.cpp
0cd1d4ca » dscharrer
2011-08-20 Improve OpenAL error messages.
384 src/audio/openal/OpenALUtils.cpp
f748b9dc » dscharrer
2011-07-31 Fix unity build.
385 )
386
387 set(AUDIO_DSOUND_SOURCES
388 src/audio/dsound/DSoundBackend.cpp
389 src/audio/dsound/DSoundSource.cpp
390 )
391
392 set(CORE_SOURCES
393 src/core/Application.cpp
a97d5de2 » dscharrer
2011-08-08 Rename Win32Application.{cpp,h} to ArxGame.{cpp,h}
394 src/core/ArxGame.cpp
f748b9dc » dscharrer
2011-07-31 Fix unity build.
395 src/core/Config.cpp
396 src/core/Core.cpp
397 src/core/GameTime.cpp
398 src/core/Localisation.cpp
844cfbee » dscharrer
2011-12-14 Store savegames in the user directory.
399 src/core/SaveGame.cpp
4db4d9cf » dscharrer
2011-12-08 Detect user/data directory locations.
400 src/core/Startup.cpp
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
401 )
402
f748b9dc » dscharrer
2011-07-31 Fix unity build.
403 set(EDITOR_SOURCES
404 src/core/Dialog.cpp
405 src/script/ScriptDebugger.cpp
406 src/script/ScriptDebuggerDialog.cpp
407 )
408
409 set(GAME_SOURCES
410 src/game/Damage.cpp
411 src/game/Equipment.cpp
412 src/game/Inventory.cpp
413 src/game/Levels.cpp
414 src/game/Map.cpp
415 src/game/Missile.cpp
416 src/game/NPC.cpp
417 src/game/Player.cpp
418 src/game/Spells.cpp
419 )
420
421 set(GRAPHICS_SOURCES
422 src/graphics/Draw.cpp
423 src/graphics/GraphicsModes.cpp
424 src/graphics/GraphicsUtility.cpp
425 src/graphics/Math.cpp
426 src/graphics/Renderer.cpp
427 src/graphics/data/CinematicTexture.cpp
428 src/graphics/data/FTL.cpp
429 src/graphics/data/Mesh.cpp
430 src/graphics/data/MeshManipulation.cpp
431 src/graphics/data/Progressive.cpp
432 src/graphics/data/TextureContainer.cpp
433 src/graphics/effects/CinematicEffects.cpp
434 src/graphics/effects/DrawEffects.cpp
435 src/graphics/effects/Fog.cpp
436 src/graphics/effects/SpellEffects.cpp
437 src/graphics/font/Font.cpp
438 src/graphics/font/FontCache.cpp
439 src/graphics/image/Image.cpp
440 src/graphics/particle/Particle.cpp
441 src/graphics/particle/ParticleEffects.cpp
442 src/graphics/particle/ParticleManager.cpp
443 src/graphics/particle/ParticleSystem.cpp
444 src/graphics/spells/Spells01.cpp
445 src/graphics/spells/Spells02.cpp
446 src/graphics/spells/Spells03.cpp
447 src/graphics/spells/Spells04.cpp
448 src/graphics/spells/Spells05.cpp
449 src/graphics/spells/Spells06.cpp
450 src/graphics/spells/Spells07.cpp
451 src/graphics/spells/Spells08.cpp
452 src/graphics/spells/Spells09.cpp
453 src/graphics/spells/Spells10.cpp
454 src/graphics/texture/PackedTexture.cpp
455 src/graphics/texture/Texture.cpp
456 src/graphics/texture/TextureStage.cpp
457 )
a9968703 » SebastienLussier
2011-09-12 [DX7] Removed all dx7 backends (please don't cry)
458
365d73b9 » SebastienLussier
2011-09-06 First working implementation of Arx using DirectX 9 (D3D9 & DInput8)
459 set(GRAPHICS_D3D9_SOURCES
460 src/graphics/d3d9/D3D9Renderer.cpp
461 src/graphics/d3d9/D3D9Texture2D.cpp
462 src/graphics/d3d9/D3D9TextureStage.cpp
f748b9dc » dscharrer
2011-07-31 Fix unity build.
463 )
464 set(GRAPHICS_OPENGL_SOURCES
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
465 src/graphics/opengl/GLTexture2D.cpp
466 src/graphics/opengl/GLTextureStage.cpp
f748b9dc » dscharrer
2011-07-31 Fix unity build.
467 src/graphics/opengl/OpenGLRenderer.cpp
468 )
469
470 set(GUI_SOURCES
471 src/gui/Credits.cpp
472 src/gui/Interface.cpp
473 src/gui/Menu.cpp
474 src/gui/MenuPublic.cpp
475 src/gui/MenuWidgets.cpp
476 src/gui/MiniMap.cpp
477 src/gui/Speech.cpp
478 src/gui/Text.cpp
479 src/gui/TextManager.cpp
480 )
481
482 set(INPUT_SOURCES src/input/Input.cpp)
365d73b9 » SebastienLussier
2011-09-06 First working implementation of Arx using DirectX 9 (D3D9 & DInput8)
483 set(INPUT_DINPUT8_SOURCES src/input/DInput8Backend.cpp)
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
484 set(INPUT_SDL_SOURCES src/input/SDLInputBackend.cpp)
b175ff28 » dscharrer
2011-07-31 Only build one of FilesystemPOSIX.cpp, FilesystemWindows.cpp, Filesys…
485
486 set(IO_SOURCES
487 src/io/Blast.cpp
488 src/io/CinematicLoad.cpp
489 src/io/Implode.cpp
490 src/io/IniReader.cpp
491 src/io/IniSection.cpp
492 src/io/IniWriter.cpp
493 src/io/IO.cpp
494 src/io/SaveBlock.cpp
495 src/io/Screenshot.cpp
f748b9dc » dscharrer
2011-07-31 Fix unity build.
496 )
9c928c06 » dscharrer
2011-10-08 Support log backends, add a file log backend.
497 set(IO_LOGGER_SOURCES
498 src/io/log/ConsoleLogger.cpp
499 src/io/log/FileLogger.cpp
52aaad0a » dscharrer
2011-10-10 [log] Share formatting between ConsoleLogger, FileLogger and MsvcLogger.
500 src/io/log/LogBackend.cpp
9c928c06 » dscharrer
2011-10-08 Support log backends, add a file log backend.
501 src/io/log/Logger.cpp
502 )
b69d7b37 » dscharrer
2011-12-09 Rename fs::path to res::path.
503 set(IO_RESOURCE_SOURCES
504 src/io/resource/PakEntry.cpp
505 src/io/resource/PakReader.cpp
506 src/io/resource/ResourcePath.cpp
507 )
9c928c06 » dscharrer
2011-10-08 Support log backends, add a file log backend.
508 set(IO_LOGGER_POSIX_SOURCES src/io/log/ColorLogger.cpp)
509 set(IO_LOGGER_WINDOWS_SOURCES src/io/log/MsvcLogger.cpp)
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
510 set(IO_FILESYSTEM_SOURCES
b2c3ef75 » dscharrer
2011-12-10 Add a separate fs::path class for filesystem paths.
511 src/io/fs/FilePath.cpp
512 src/io/fs/FileStream.cpp
513 src/io/fs/Filesystem.cpp
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
514 )
b2c3ef75 » dscharrer
2011-12-10 Add a separate fs::path class for filesystem paths.
515 set(IO_FILESYSTEM_BOOST_SOURCES src/io/fs/FilesystemBoost.cpp)
516 set(IO_FILESYSTEM_POSIX_SOURCES src/io/fs/FilesystemPOSIX.cpp)
517 set(IO_FILESYSTEM_WINDOWS_SOURCES src/io/fs/FilesystemWindows.cpp)
f748b9dc » dscharrer
2011-07-31 Fix unity build.
518
519 set(MATH_SOURCES src/math/Angle.cpp)
520
521 set(PHYSICS_SOURCES
522 src/physics/Anchors.cpp
523 src/physics/Attractors.cpp
524 src/physics/Box.cpp
525 src/physics/Clothes.cpp
526 src/physics/Collisions.cpp
527 src/physics/CollisionShapes.cpp
528 src/physics/Physics.cpp
b175ff28 » dscharrer
2011-07-31 Only build one of FilesystemPOSIX.cpp, FilesystemWindows.cpp, Filesys…
529 )
530
f748b9dc » dscharrer
2011-07-31 Fix unity build.
531 set(PLATFORM_SOURCES
9490540e » dscharrer
2011-09-08 Add a crash handler that prints very detailed stack traces if gdb is …
532 src/platform/CrashHandler.cpp
4db4d9cf » dscharrer
2011-12-08 Detect user/data directory locations.
533 src/platform/Environment.cpp
f748b9dc » dscharrer
2011-07-31 Fix unity build.
534 src/platform/Lock.cpp
535 src/platform/Platform.cpp
536 src/platform/Random.cpp
537 src/platform/String.cpp
538 src/platform/Thread.cpp
539 src/platform/Time.cpp
540 )
9c3e84d9 » lubosz
2011-01-16 stubby cmake build
541
f748b9dc » dscharrer
2011-07-31 Fix unity build.
542 set(SCENE_SOURCES
543 src/scene/ChangeLevel.cpp
544 src/scene/CinematicSound.cpp
545 src/scene/GameSound.cpp
546 src/scene/Interactive.cpp
547 src/scene/Light.cpp
548 src/scene/LinkedObject.cpp
549 src/scene/LoadLevel.cpp
550 src/scene/Object.cpp
551 src/scene/Scene.cpp
552 )
553
554 set(SCRIPT_SOURCES
555 src/script/Script.cpp
556 src/script/ScriptedAnimation.cpp
557 src/script/ScriptedCamera.cpp
558 src/script/ScriptedControl.cpp
559 src/script/ScriptedConversation.cpp
560 src/script/ScriptedInterface.cpp
561 src/script/ScriptedInventory.cpp
562 src/script/ScriptedIOControl.cpp
563 src/script/ScriptedIOProperties.cpp
564 src/script/ScriptedItem.cpp
565 src/script/ScriptedLang.cpp
566 src/script/ScriptedNPC.cpp
567 src/script/ScriptedPlayer.cpp
568 src/script/ScriptedVariable.cpp
569 src/script/ScriptEvent.cpp
570 src/script/ScriptUtils.cpp
571 )
9c3e84d9 » lubosz
2011-01-16 stubby cmake build
572
6c9db469 » dscharrer
2011-08-15 Move windowing code into a separate subdirectory.
573 set(WINDOW_SOURCES
574 src/window/RenderWindow.cpp
575 src/window/Window.cpp
576 )
577 set(WINDOW_SDL_SOURCES src/window/SDLWindow.cpp)
578 set(WINDOW_WIN32_SOURCES src/window/Win32Window.cpp)
365d73b9 » SebastienLussier
2011-09-06 First working implementation of Arx using DirectX 9 (D3D9 & DInput8)
579 set(WINDOW_D3D9_SOURCES src/window/D3D9Window.cpp)
6c9db469 » dscharrer
2011-08-15 Move windowing code into a separate subdirectory.
580
f748b9dc » dscharrer
2011-07-31 Fix unity build.
581 file(GLOB_RECURSE ALL_INCLUDES ${SRC_DIR}/*.h)
41d57f0d » dscharrer
2011-04-30 Make building the OpenAL and DirectSound backends optional.
582
3837bcbd » dscharrer
2011-10-19 [make style] Fix include warnings.
583 include_directories(${SRC_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}/tools)
519b7f1a » dscharrer
2011-07-18 Add Boost as a dependency.
584 include_directories(SYSTEM ${ZLIB_INCLUDE_DIRS} ${IL_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIRS} ${Boost_INCLUDE_DIR})
41d57f0d » dscharrer
2011-04-30 Make building the OpenAL and DirectSound backends optional.
585
4ef14837 » SebastienLussier
2012-01-05 Use boost auto linking feature when building with MSVC
586 # Setting the BOOST_ROOT will result in linking failures on Visual Studio as found release and debug
587 # libs get mixed up. On windows we will empty out the Boost_LIBRARIES list and count on the
588 # auto-linking feature boost provides. http://www.boost.org/doc/libs/1_47_0/more/getting_started/windows.html#auto-linking
589 if (MSVC)
590 # Reset libraries list so VC will perform auto-linking.
591 set (Boost_LIBRARIES "")
592
593 # Not needed anymore as BOOST_ROOT finds these properly.
594 # Didnt remove yet eiher so nothing breaks, added empty checks instead to not add duplicated.
595 if ("${Boost_INCLUDE_DIRS}" STREQUAL "")
596 set (Boost_INCLUDE_DIRS ${Boost_INCLUDE_DIRS} $ENV{BOOST_ROOT}/include)
597 endif ()
598 if ("${Boost_LIBRARY_DIRS}" STREQUAL "")
599 set (Boost_LIBRARY_DIRS ${Boost_LIBRARY_DIRS} $ENV{BOOST_ROOT}/lib)
600 endif ()
601
602 # Add boost lib directory to the list of libraries paths
603 link_directories(${Boost_LIBRARY_DIRS})
604 endif ()
605
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
606 set(ARX_LIBRARIES ${FREETYPE_LIBRARIES} ${ZLIB_LIBRARIES} ${IL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES})
4ef14837 » SebastienLussier
2012-01-05 Use boost auto linking feature when building with MSVC
607
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
608 if(TIME_LIBRARIES)
609 list(APPEND ARX_LIBRARIES ${TIME_LIBRARIES})
610 endif()
611 if(HAVE_WINAPI)
612 list(APPEND ARX_LIBRARIES gdi32 shell32 comdlg32 ole32 comctl32)
613 endif()
614
41d57f0d » dscharrer
2011-04-30 Make building the OpenAL and DirectSound backends optional.
615 if(ARX_USE_OPENAL)
6c9db469 » dscharrer
2011-08-15 Move windowing code into a separate subdirectory.
616 list(APPEND AUDIO_SOURCES ${AUDIO_OPENAL_SOURCES})
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
617 list(APPEND ARX_LIBRARIES ${OPENAL_LIBRARY})
b1323e6a » dscharrer
2011-05-18 Mark include paths of external projects as SYSTEM to disable warnings.
618 include_directories(SYSTEM ${OPENAL_INCLUDE_DIR})
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
619 set(HAVE_OPENAL 1)
b43b234b » dscharrer
2011-04-30 Make the OpenAL effect extension optional so we can build against old…
620 if(OPENALEFX_FOUND)
b1323e6a » dscharrer
2011-05-18 Mark include paths of external projects as SYSTEM to disable warnings.
621 include_directories(SYSTEM ${OPENAL_EFX_INCLUDE_DIR})
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
622 set(HAVE_OPENAL_EFX 1)
b43b234b » dscharrer
2011-04-30 Make the OpenAL effect extension optional so we can build against old…
623 endif()
41d57f0d » dscharrer
2011-04-30 Make building the OpenAL and DirectSound backends optional.
624 endif()
625 if(ARX_USE_DSOUND)
6c9db469 » dscharrer
2011-08-15 Move windowing code into a separate subdirectory.
626 list(APPEND AUDIO_SOURCES ${AUDIO_DSOUND_SOURCES})
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
627 set(HAVE_DSOUND 1)
41d57f0d » dscharrer
2011-04-30 Make building the OpenAL and DirectSound backends optional.
628 endif()
f748b9dc » dscharrer
2011-07-31 Fix unity build.
629
365d73b9 » SebastienLussier
2011-09-06 First working implementation of Arx using DirectX 9 (D3D9 & DInput8)
630 if(ARX_USE_D3D9)
631 list(APPEND GRAPHICS_SOURCES ${GRAPHICS_D3D9_SOURCES})
632 list(APPEND WINDOW_SOURCES ${WINDOW_WIN32_SOURCES} ${WINDOW_D3D9_SOURCES})
633
48647925 » SebastienLussier
2011-11-12 Cleaned DirectX libraries inclusion in CMake
634 list(APPEND ARX_LIBRARIES ${DIRECTX_D3D9_LIBRARY} ${DIRECTX_D3DX9_LIBRARY} ${DIRECTX_D3DCOMPILER_LIBRARY} ${DIRECTX_DXERR9_LIBRARY})
365d73b9 » SebastienLussier
2011-09-06 First working implementation of Arx using DirectX 9 (D3D9 & DInput8)
635 include_directories(SYSTEM ${DIRECTX_INCLUDE_DIR})
636
637 set(HAVE_D3D9 1)
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
638 endif()
f748b9dc » dscharrer
2011-07-31 Fix unity build.
639
c105d075 » dscharrer
2011-06-27 Make building the OpenGLRenderer optional, disabled by default.
640 if(ARX_USE_OPENGL)
6c9db469 » dscharrer
2011-08-15 Move windowing code into a separate subdirectory.
641 list(APPEND GRAPHICS_SOURCES ${GRAPHICS_OPENGL_SOURCES})
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
642 list(APPEND ARX_LIBRARIES ${OPENGL_LIBRARIES} ${GLEW_LIBRARIES})
d140a056 » dscharrer
2011-08-14 Start implementing OpenGLRenderer.
643 include_directories(SYSTEM ${OPENGL_INCLUDE_DIR} ${GLEW_INCLUDE_DIR})
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
644 set(HAVE_OPENGL 1)
d140a056 » dscharrer
2011-08-14 Start implementing OpenGLRenderer.
645 add_definitions(-DGL_GLEXT_PROTOTYPES)
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
646 endif()
647
648 if(ARX_USE_SDL)
6c9db469 » dscharrer
2011-08-15 Move windowing code into a separate subdirectory.
649 list(APPEND WINDOW_SOURCES ${WINDOW_SDL_SOURCES})
650 list(APPEND INPUT_SOURCES ${INPUT_SDL_SOURCES})
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
651 list(APPEND ARX_LIBRARIES ${SDL_LIBRARY})
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
652 include_directories(SYSTEM ${SDL_INCLUDE_DIR})
653 set(HAVE_SDL 1)
c105d075 » dscharrer
2011-06-27 Make building the OpenGLRenderer optional, disabled by default.
654 endif()
9c3e84d9 » lubosz
2011-01-16 stubby cmake build
655
365d73b9 » SebastienLussier
2011-09-06 First working implementation of Arx using DirectX 9 (D3D9 & DInput8)
656 if(ARX_USE_DINPUT8)
657 list(APPEND INPUT_SOURCES ${INPUT_DINPUT8_SOURCES})
48647925 » SebastienLussier
2011-11-12 Cleaned DirectX libraries inclusion in CMake
658 list(APPEND ARX_LIBRARIES ${DIRECTX_DINPUT8_LIBRARY} ${DIRECTX_DXGUID_LIBRARY} ${DIRECTX_DXERR9_LIBRARY})
365d73b9 » SebastienLussier
2011-09-06 First working implementation of Arx using DirectX 9 (D3D9 & DInput8)
659 set(HAVE_DINPUT8 1)
a9968703 » SebastienLussier
2011-09-12 [DX7] Removed all dx7 backends (please don't cry)
660 if(WINE)
953612b1 » dscharrer
2011-09-10 Add a workaround for missing symbols in wine's dinput8.dll.so
661 # TODO(broken-wine) work around missing symbols in wine's dinput8
662 list(APPEND ARX_LIBRARIES dinput)
663 endif()
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
664 endif()
f748b9dc » dscharrer
2011-07-31 Fix unity build.
665
9c928c06 » dscharrer
2011-10-08 Support log backends, add a file log backend.
666 if(HAVE_ISATTY)
667 list(APPEND IO_LOGGER_SOURCES ${IO_LOGGER_POSIX_SOURCES})
668 endif()
669 if(HAVE_WINAPI)
69c63052 » dscharrer
2011-10-08 Fix mingw32 build.
670 list(APPEND IO_LOGGER_SOURCES ${IO_LOGGER_WINDOWS_SOURCES})
9c928c06 » dscharrer
2011-10-08 Support log backends, add a file log backend.
671 endif()
672 list(APPEND IO_SOURCES ${IO_LOGGER_SOURCES})
673
b69d7b37 » dscharrer
2011-12-09 Rename fs::path to res::path.
674 list(APPEND IO_SOURCES ${IO_RESOURCE_SOURCES})
675
f748b9dc » dscharrer
2011-07-31 Fix unity build.
676 if(HAVE_POSIX_FILESYSTEM)
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
677 list(APPEND IO_FILESYSTEM_SOURCES ${IO_FILESYSTEM_POSIX_SOURCES})
f748b9dc » dscharrer
2011-07-31 Fix unity build.
678 elseif(HAVE_WINAPI)
679 add_definitions(-DHAVE_WINDOWS_FILESYSTEM)
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
680 list(APPEND IO_FILESYSTEM_SOURCES ${IO_FILESYSTEM_WINDOWS_SOURCES})
f748b9dc » dscharrer
2011-07-31 Fix unity build.
681 elseif((Boost_MAJOR_VERSION GREATER 1) OR (NOT Boost_MINOR_VERSION LESS 44))
4db4d9cf » dscharrer
2011-12-08 Detect user/data directory locations.
682 find_package(Boost 1.44 REQUIRED COMPONENTS ${BOOST_COMPONENTS} filesystem system)
f748b9dc » dscharrer
2011-07-31 Fix unity build.
683 set(HAVE_BOOST_FILESYSTEM_V3 1)
684 add_definitions(-DBOOST_FILESYSTEM_VERSION=3)
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
685 list(APPEND IO_FILESYSTEM_SOURCES ${IO_FILESYSTEM_BOOST_SOURCES})
d9d146cb » dscharrer
2011-12-14 Fix linking errors when compiling agains boost filesystem.
686 list(APPEND ARX_LIBRARIES ${Boost_LIBRARIES})
f748b9dc » dscharrer
2011-07-31 Fix unity build.
687 else()
688 message(FATAL_ERROR "You need either Boost >= 1.44 or windows api or sys/stat.h, sys/errno.h and dirent.h; Found boost version ${Boost_VERSION}")
689 endif()
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
690 list(APPEND IO_SOURCES ${IO_FILESYSTEM_SOURCES})
f748b9dc » dscharrer
2011-07-31 Fix unity build.
691
692 if(NOT MSVC)
693 check_link_library(Boost Boost_LIBRARIES)
694 endif()
695
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
696 set(ARX_SOURCES ${AI_SOURCES} ${ANIMATION_SOURCES} ${AUDIO_SOURCES} ${CORE_SOURCES} ${GAME_SOURCES} ${GRAPHICS_SOURCES} ${GUI_SOURCES} ${INPUT_SOURCES} ${IO_SOURCES} ${MATH_SOURCES} ${PHYSICS_SOURCES} ${PLATFORM_SOURCES} ${SCENE_SOURCES} ${SCRIPT_SOURCES} ${WINDOW_SOURCES})
f748b9dc » dscharrer
2011-07-31 Fix unity build.
697
8159cf1b » dscharrer
2011-05-14 Add an option to not build the editor components.
698 if(ARX_BUILD_EDITOR)
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
699 list(APPEND ARX_SOURCES ${EDITOR_SOURCES})
8159cf1b » dscharrer
2011-05-14 Add an option to not build the editor components.
700 set(BUILD_EDITOR 1)
41d57f0d » dscharrer
2011-04-30 Make building the OpenAL and DirectSound backends optional.
701 endif()
05cc8a66 » dscharrer
2011-06-01 Make building .scn file support optional. (raw unprocessed scenes, no…
702 if(ARX_BUILD_EDIT_LOADSAVE)
703 set(BUILD_EDIT_LOADSAVE 1)
704 endif()
9c3e84d9 » lubosz
2011-01-16 stubby cmake build
705
cc565fb7 » dscharrer
2011-07-22 Fix compile errors when using older boost versions (tested 1.37 and 1…
706 add_definitions(-DBOOST_FILESYSTEM_NO_DEPRECATED)
707
5c2d73a8 » SebastienLussier
2011-05-04 Fixed VC2010 warnings/errors/projects
708 #create source groups
b7b07356 » SebastienLussier
2011-09-12 [CMake] Changed create_source_groups() to create a hierarchy that rep…
709 list(APPEND ALL_FILES_FOR_GROUPS ${ALL_INCLUDES} ${ARX_SOURCES})
710 create_source_groups(ALL_FILES_FOR_GROUPS)
5c2d73a8 » SebastienLussier
2011-05-04 Fixed VC2010 warnings/errors/projects
711
1532a011 » dscharrer
2011-10-10 Work around gcc warning in unity builds about types from an anonymous…
712 if(ARX_USE_UNITYBUILD)
713 set(UNITY_BUILD 1)
714 endif()
715
4db4d9cf » dscharrer
2011-12-08 Detect user/data directory locations.
716 configure_file("${SRC_DIR}/Configure.h.cmake" "Configure.h" ESCAPE_QUOTES)
7fa9f82d » dscharrer
2011-05-11 Write configure options to a header instead of passing them on the co…
717
1ea3ead4 » dscharrer
2011-10-03 Automatically generate a version string at build time.
718 version_file("${SRC_DIR}/core/Version.cpp.cmake" "${CMAKE_BINARY_DIR}/Version.cpp" "VERSION" ".git")
719 list(APPEND ARX_SOURCES "${CMAKE_BINARY_DIR}/Version.cpp")
9c3e84d9 » lubosz
2011-01-16 stubby cmake build
720
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
721 # Add executables
722
736121e4 » SebastienLussier
2011-09-28 Build Arx as a Win32 application (no more console)
723 add_executable_shared(arx WIN32 "${ARX_SOURCES}" "${ARX_LIBRARIES}" "${ALL_INCLUDES}")
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
724
725 if(ARX_BUILD_TOOLS)
726
727 set(SAVETOOL_SOURCES
728 ${IO_FILESYSTEM_SOURCES}
9c928c06 » dscharrer
2011-10-08 Support log backends, add a file log backend.
729 ${IO_LOGGER_SOURCES}
b69d7b37 » dscharrer
2011-12-09 Rename fs::path to res::path.
730 ${IO_RESOURCE_SOURCES}
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
731 src/core/Localisation.cpp
732 src/io/Blast.cpp
733 src/io/SaveBlock.cpp
734 src/io/IniReader.cpp
735 src/io/IniSection.cpp
736 src/platform/String.cpp
737 src/platform/Platform.cpp
6e6bfe49 » dscharrer
2011-10-09 Make the new Logger threadsafe.
738 src/platform/Lock.cpp
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
739 tools/savetool/savetool.cpp
740 tools/savetool/SaveFix.cpp
741 tools/savetool/SaveView.cpp
742 )
743
744 set(SAVETOOL_LIBRARIES ${ZLIB_LIBRARIES} ${Boost_LIBRARIES})
745
8d3c0a44 » dscharrer
2011-11-09 Merge branch 'master' into slussier_misc
746 add_executable_shared(arxsavetool "" "${SAVETOOL_SOURCES}" "${SAVETOOL_LIBRARIES}" "")
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
747
748 set(UNPAK_SOURCES
749 ${IO_FILESYSTEM_SOURCES}
9c928c06 » dscharrer
2011-10-08 Support log backends, add a file log backend.
750 ${IO_LOGGER_SOURCES}
b69d7b37 » dscharrer
2011-12-09 Rename fs::path to res::path.
751 ${IO_RESOURCE_SOURCES}
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
752 src/io/Blast.cpp
9c928c06 » dscharrer
2011-10-08 Support log backends, add a file log backend.
753 src/io/log/ColorLogger.cpp
754 src/io/log/ConsoleLogger.cpp
755 src/io/log/Logger.cpp
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
756 src/platform/String.cpp
757 src/platform/Platform.cpp
6e6bfe49 » dscharrer
2011-10-09 Make the new Logger threadsafe.
758 src/platform/Lock.cpp
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
759 tools/unpak/unpak.cpp
760 )
761
762 set(UNPAK_LIBRARIES ${Boost_LIBRARIES})
763
8d3c0a44 » dscharrer
2011-11-09 Merge branch 'master' into slussier_misc
764 add_executable_shared(arxunpak "" "${UNPAK_SOURCES}" "${UNPAK_LIBRARIES}" "")
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
765
c105d075 » dscharrer
2011-06-27 Make building the OpenGLRenderer optional, disabled by default.
766 endif()
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
767
768 # Build and link executables
769
770 if(ARX_USE_UNITYBUILD)
771 unity_build()
772 else()
773 shared_build()
ec981480 » dscharrer
2011-08-14 Add stub SDL Window and InputBackend and OpenGL Renderer implementati…
774 endif()
7c677ae8 » lubosz
2011-01-19 added remake flag
775
f67374f4 » dscharrer
2011-08-16 Merge tools build into the main CMakeLists.txt and automatically extr…
776
777 # Custom make targets
778
7c677ae8 » lubosz
2011-01-19 added remake flag
779 add_custom_target(remake
7a4b0580 » lubosz
2011-01-31 fixed formatting and include folder
780 #clean and compile with 1 thread per core
781 COMMAND make clean && rm CMakeCache.txt && cmake ${CMAKE_SOURCE_DIR} -G\"Unix Makefiles\" && make -j`getconf _NPROCESSORS_ONLN`
7c677ae8 » lubosz
2011-01-19 added remake flag
782 )
335f4bf0 » dscharrer
2011-01-20 Add tool for PAK file decompression.
783
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
784 if(DOXYGEN_EXECUTABLE)
785 add_custom_target(doc
786 #build the documentation
ac9fe80b » dscharrer
2011-10-19 [cmake] Update doxygen configuration.
787 COMMAND cd ${CMAKE_SOURCE_DIR}/src && ${DOXYGEN_EXECUTABLE} ${CMAKE_SOURCE_DIR}/doc/Doxyfile
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
788 )
789 endif()
766a3e9b » lubosz
2011-01-26 added doxyfile and doc build to cmake. see readme.
790
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
791 if(PYTHONINTERP_FOUND)
3837bcbd » dscharrer
2011-10-19 [make style] Fix include warnings.
792
00ec5470 » dscharrer
2011-11-10 [cmake] The style target should depend on the source files.
793 file(GLOB_RECURSE TOOLS_INCLUDES ${CMAKE_SOURCE_DIR}/tools/*.h)
794 set(ALL_SOURCES
795 ${ARX_SOURCES}
796 ${ALL_INCLUDES}
797 ${SAVETOOL_SOURCES}
798 ${UNPAK_SOURCES}
799 ${TOOLS_INCLUDES}
800 )
801
3837bcbd » dscharrer
2011-10-19 [make style] Fix include warnings.
802 unset(STYLE_FILTER)
803
804 # Complains about any c-style cast -> too annoying.
805 set(STYLE_FILTER ${STYLE_FILTER},-readability/casting)
806
807 # Insists on including evrything in the .cpp file even if it is included in the header.
808 # This behaviour conflicts with orther tools.
809 set(STYLE_FILTER ${STYLE_FILTER},-build/include_what_you_use)
810
811 # Too many false positives and not very helpful error messages.
812 set(STYLE_FILTER ${STYLE_FILTER},-build/include_order)
813
52c76cf7 » dscharrer
2011-10-19 [cmake] Improve style checking.
814 # No thanks.
815 set(STYLE_FILTER ${STYLE_FILTER},-readability/streams)
816
817 # Ugh!
818 set(STYLE_FILTER ${STYLE_FILTER},-whitespace/tab)
819
820 # Yes it is!
821 set(STYLE_FILTER ${STYLE_FILTER},-whitespace/blank_line)
822
823 # Suggessts excessive indentation.
824 set(STYLE_FILTER ${STYLE_FILTER},-whitespace/labels)
825
826 # Why?
827 set(STYLE_FILTER ${STYLE_FILTER},-whitespace/todo)
828 set(STYLE_FILTER ${STYLE_FILTER},-readability/todo)
829
830 # "For a static/global string constant, use a C style string"
831 set(STYLE_FILTER ${STYLE_FILTER},-runtime/string)
832
833 # TODO consider enabling these and fixing the warnings
834
835 # Very noisy and perhaps a matter of taste.
836 set(STYLE_FILTER ${STYLE_FILTER},-whitespace/braces)
837 set(STYLE_FILTER ${STYLE_FILTER},-whitespace/parens)
838 set(STYLE_FILTER ${STYLE_FILTER},-whitespace/newline)
839
840 # Complains about using short, long, etc.
841 set(STYLE_FILTER ${STYLE_FILTER},-runtime/int)
842
843 # Complains about non-const references as parameters
844 set(STYLE_FILTER ${STYLE_FILTER},-runtime/references)
845
846 # TODO enable these!
847
848 set(RELAXED_STYLE_FILTER ${STYLE_FILTER})
849
850 # Very noisy but should be fixed.
851 set(RELAXED_STYLE_FILTER ${RELAXED_STYLE_FILTER},-whitespace/operators)
852 set(RELAXED_STYLE_FILTER ${RELAXED_STYLE_FILTER},-whitespace/comma)
853 set(RELAXED_STYLE_FILTER ${RELAXED_STYLE_FILTER},-whitespace/comments)
854 set(RELAXED_STYLE_FILTER ${RELAXED_STYLE_FILTER},-whitespace/end_of_line)
855 set(RELAXED_STYLE_FILTER ${RELAXED_STYLE_FILTER},-whitespace/align_tab)
856 set(RELAXED_STYLE_FILTER ${RELAXED_STYLE_FILTER},-whitespace/line_length)
857 set(RELAXED_STYLE_FILTER ${RELAXED_STYLE_FILTER},-whitespace/semicolon)
858 set(RELAXED_STYLE_FILTER ${RELAXED_STYLE_FILTER},-whitespace/ident_space)
859
860 # Unsafe functions.
861 set(RELAXED_STYLE_FILTER ${RELAXED_STYLE_FILTER},-runtime/printf)
862 set(RELAXED_STYLE_FILTER ${RELAXED_STYLE_FILTER},-runtime/threadsafe_fn)
863
864 # Very much known...
865 set(RELAXED_STYLE_FILTER ${RELAXED_STYLE_FILTER},-readability/fn_size)
866
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
867 add_custom_target(style
00ec5470 » dscharrer
2011-11-10 [cmake] The style target should depend on the source files.
868 COMMAND cmake -E chdir "${CMAKE_SOURCE_DIR}" "${PYTHON_EXECUTABLE}" "${CMAKE_SOURCE_DIR}/scripts/cpplint.py" "--filter=${RELAXED_STYLE_FILTER}" ${ALL_SOURCES}
869 DEPENDS ${ALL_SOURCES} VERBATIM
52c76cf7 » dscharrer
2011-10-19 [cmake] Improve style checking.
870 )
871
872 add_custom_target(strict-style
00ec5470 » dscharrer
2011-11-10 [cmake] The style target should depend on the source files.
873 COMMAND cmake -E chdir "${CMAKE_SOURCE_DIR}" "${PYTHON_EXECUTABLE}" "${CMAKE_SOURCE_DIR}/scripts/cpplint.py" "--filter=${STYLE_FILTER}" ${ALL_SOURCES}
874 DEPENDS ${ALL_SOURCES} VERBATIM
734fab0a » dscharrer
2011-02-28 Use find_package in CMakeLists.txt instead of hardcoding library name…
875 )
ab07b502 » dscharrer
2011-02-21 Use consistent casing in CMakeLists.txt
876 endif()
e9bb76b8 » lubosz
2011-01-27 style check and make target
877
3e661acd » lubosz
2011-01-28 options for not buildings tests and tools
878 if(ARX_BUILD_TESTS)
879 add_subdirectory(tests ${CMAKE_SOURCE_DIR}/bin/tests)
880 endif()
Something went wrong with that request. Please try again.