-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
384 lines (360 loc) · 13.6 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
################
### reVision ###
################
cmake_minimum_required(VERSION 3.10)
cmake_policy(SET CMP0079 NEW)
include(ExternalProject)
project(reVision VERSION 5.0.0 DESCRIPTION "Video game engine project.")
# Get dependency directory locations from the user
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /Oi /Ot /GF /Qpar /std:c++17 /Zc:rvalueCast /W3 /WX")
set(CMAKE_CXX_FLAGS_SILENT "${CMAKE_CXX_FLAGS} /MP /Oi /Ot /GF /Qpar /std:c++17 /Zc:rvalueCast- /W0 /WX-")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Od /Gy /MDd /JMC")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /O2 /Ob2 /GL /MD")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LTCG:incremental")
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /DEBUG:FASTLINK /INCREMENTAL:NO")
set_property(GLOBAL PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "$(SolutionDir)app")
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER Other)
# Add our own source files
add_subdirectory( src )
target_include_directories(reVision PUBLIC ${PROJECT_SOURCE_DIR}/src)
link_libraries(reVision "OpenGL32.lib")
##################
# INCLUDE ASSIMP #
##################
set(CUSTOM_ASSIMP "" CACHE PATH "ASSIMP root directory")
if (CUSTOM_ASSIMP STREQUAL "")
ExternalProject_Add(
ASSIMP
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/
STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/external/stamps/
BUILD_IN_SOURCE ON
BUILD_ALWAYS OFF
GIT_REPOSITORY https://github.com/assimp/assimp
GIT_TAG master
GIT_SHALLOW ON
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DASSIMP_BUILD_ALL_EXPORTERS_BY_DEFAULT:BOOL=ON
-DASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT:BOOL=ON
-DASSIMP_BUILD_ASSIMP_TOOLS:BOOL=OFF
-DASSIMP_BUILD_SAMPLES:BOOL=OFF
-DASSIMP_BUILD_TESTS:BOOL=OFF
-DASSIMP_NO_EXPORT:BOOL=ON
-DBUILD_SHARED_LIBS:BOOL=OFF
-DBUILD_STATIC_LIBS:BOOL=ON
-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}
-DCMAKE_CXX_STANDARD_REQUIRED=${CMAKE_CXX_STANDARD_REQUIRED}
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS_SILENT}
-DCMAKE_CXX_FLAGS_DEBUG=${CMAKE_CXX_FLAGS_DEBUG}
-DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE}
-DCMAKE_EXE_LINKER_FLAGS=${CMAKE_EXE_LINKER_FLAGS}
-DCMAKE_EXE_LINKER_FLAGS_DEBUG=${CMAKE_EXE_LINKER_FLAGS_DEBUG}
UPDATE_COMMAND ""
INSTALL_COMMAND ""
)
ExternalProject_Get_Property(ASSIMP SOURCE_DIR)
set (CUSTOM_ASSIMP ${SOURCE_DIR})
endif (CUSTOM_ASSIMP STREQUAL "")
target_include_directories(reVision PRIVATE ${CUSTOM_ASSIMP}/include/ SYSTEM INTERFACE ${CUSTOM_ASSIMP}/include/)
target_link_libraries(reVision
debug ${CUSTOM_ASSIMP}/lib/Debug/assimp-vc142-mtd.lib
optimized ${CUSTOM_ASSIMP}/lib/Release/assimp-vc142-mt.lib
debug ${CUSTOM_ASSIMP}/lib/Debug/IrrXMLd.lib
optimized ${CUSTOM_ASSIMP}/lib/Release/IrrXML.lib
debug ${CUSTOM_ASSIMP}/lib/Debug/zlibstaticd.lib
optimized ${CUSTOM_ASSIMP}/lib/Release/zlibstatic.lib
)
##################
# INCLUDE BULLET #
##################
set(CUSTOM_BULLET "" CACHE PATH "Bullet Physics library (BT) root directory")
if (CUSTOM_BULLET STREQUAL "")
ExternalProject_Add(
BULLET
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/
STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/external/stamps/
BUILD_IN_SOURCE ON
BUILD_ALWAYS OFF
GIT_REPOSITORY https://github.com/bulletphysics/bullet3
GIT_TAG master
GIT_SHALLOW ON
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DBUILD_BULLET2_DEMOS:BOOL=OFF
-DBUILD_BULLET3:BOOL=ON
-DBUILD_CLSOCKET:BOOL=OFF
-DBUILD_CPU_DEMOS:BOOL=OFF
-DBUILD_ENET:BOOL=OFF
-DBUILD_EXTRAS:BOOL=OFF
-DBUILD_OPENGL3_DEMOS:BOOL=OFF
-DBUILD_PYBULLET:BOOL=OFF
-DBUILD_SHARED_LIBS:BOOL=OFF
-DBUILD_STATIC_LIBS:BOOL=ON
-DBUILD_UNIT_TESTS:BOOL=OFF
-DINSTALL_LIBS:BOOL=OFF
-DUSE_MSVC_FUNCTION_LEVEL_LINKING:BOOL=ON
-DUSE_MSVC_INCREMENTAL_LINKING:BOOL=ON
-DUSE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=ON
-DUSE_MSVC_STRING_POOLING:BOOL=ON
-DUSE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD:BOOL=ON
-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}
-DCMAKE_CXX_STANDARD_REQUIRED=${CMAKE_CXX_STANDARD_REQUIRED}
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS_SILENT}
-DCMAKE_CXX_FLAGS_DEBUG=${CMAKE_CXX_FLAGS_DEBUG}
-DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE}
-DCMAKE_EXE_LINKER_FLAGS=${CMAKE_EXE_LINKER_FLAGS}
-DCMAKE_EXE_LINKER_FLAGS_DEBUG=${CMAKE_EXE_LINKER_FLAGS_DEBUG}
UPDATE_COMMAND ""
INSTALL_COMMAND ""
)
ExternalProject_Get_Property(BULLET SOURCE_DIR)
set (CUSTOM_BULLET ${SOURCE_DIR})
endif (CUSTOM_BULLET STREQUAL "")
target_include_directories(reVision PRIVATE ${CUSTOM_BULLET}/src/ SYSTEM INTERFACE ${CUSTOM_BULLET}/src/)
target_link_libraries(reVision
debug ${CUSTOM_BULLET}/lib/Debug/Bullet2FileLoader_Debug.lib
optimized ${CUSTOM_BULLET}/lib/Release/Bullet2FileLoader.lib
debug ${CUSTOM_BULLET}/lib/Debug/Bullet3Collision_Debug.lib
optimized ${CUSTOM_BULLET}/lib/Release/Bullet3Collision.lib
debug ${CUSTOM_BULLET}/lib/Debug/Bullet3Common_Debug.lib
optimized ${CUSTOM_BULLET}/lib/Release/Bullet3Common.lib
debug ${CUSTOM_BULLET}/lib/Debug/Bullet3Dynamics_Debug.lib
optimized ${CUSTOM_BULLET}/lib/Release/Bullet3Dynamics.lib
debug ${CUSTOM_BULLET}/lib/Debug/Bullet3Geometry_Debug.lib
optimized ${CUSTOM_BULLET}/lib/Release/Bullet3Geometry.lib
debug ${CUSTOM_BULLET}/lib/Debug/Bullet3OpenCL_clew_Debug.lib
optimized ${CUSTOM_BULLET}/lib/Release/Bullet3OpenCL_clew.lib
debug ${CUSTOM_BULLET}/lib/Debug/BulletCollision_Debug.lib
optimized ${CUSTOM_BULLET}/lib/Release/BulletCollision.lib
debug ${CUSTOM_BULLET}/lib/Debug/BulletDynamics_Debug.lib
optimized ${CUSTOM_BULLET}/lib/Release/BulletDynamics.lib
debug ${CUSTOM_BULLET}/lib/Debug/BulletInverseDynamics_Debug.lib
optimized ${CUSTOM_BULLET}/lib/Release/BulletInverseDynamics.lib
debug ${CUSTOM_BULLET}/lib/Debug/BulletSoftBody_Debug.lib
optimized ${CUSTOM_BULLET}/lib/Release/BulletSoftBody.lib
debug ${CUSTOM_BULLET}/lib/Debug/LinearMath_Debug.lib
optimized ${CUSTOM_BULLET}/lib/Release/LinearMath.lib
)
#####################
# INCLUDE FREEIMAGE #
#####################
set(CUSTOM_FREEIMAGE "" CACHE PATH "FreeImage root directory")
if (CUSTOM_FREEIMAGE STREQUAL "")
ExternalProject_Add(
FREEIMAGE
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/
STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/external/stamps/
BUILD_IN_SOURCE ON
BUILD_ALWAYS OFF
URL http://downloads.sourceforge.net/freeimage/FreeImage3180Win32Win64.zip
CONFIGURE_COMMAND ""
UPDATE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND
${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_BINARY_DIR}/external/src/FREEIMAGE/Dist/x64/FreeImage.dll
${PROJECT_SOURCE_DIR}/app/FreeImage.dll
)
ExternalProject_Get_Property(FREEIMAGE SOURCE_DIR)
set (CUSTOM_FREEIMAGE ${SOURCE_DIR})
endif (CUSTOM_FREEIMAGE STREQUAL "")
target_include_directories(reVision
PRIVATE ${CUSTOM_FREEIMAGE}/dist/x64/
PRIVATE ${CUSTOM_FREEIMAGE}/Wrapper/FreeImagePlus/dist/x64/
SYSTEM INTERFACE ${CUSTOM_FREEIMAGE}/dist/x64/
SYSTEM INTERFACE ${CUSTOM_FREEIMAGE}/Wrapper/FreeImagePlus/dist/x64/
)
target_link_libraries(reVision
${CUSTOM_FREEIMAGE}/dist/x64/FreeImage.lib
${CUSTOM_FREEIMAGE}/Wrapper/FreeImagePlus/dist/x64/FreeImagePlus.lib
)
################
# INCLUDE GLAD #
################
ExternalProject_Add(
GLAD
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/external/src/glad/
STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/external/stamps/
BUILD_IN_SOURCE ON
BUILD_ALWAYS OFF
CONFIGURE_COMMAND ""
UPDATE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
ExternalProject_Get_Property(GLAD SOURCE_DIR)
target_include_directories(reVision PRIVATE ${SOURCE_DIR} SYSTEM INTERFACE ${SOURCE_DIR})
################
# INCLUDE GLFW #
################
set(CUSTOM_GLFW "" CACHE PATH "OpenGL Framework library (GLFW) root directory")
if (CUSTOM_GLFW STREQUAL "")
ExternalProject_Add(
GLFW
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/
STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/external/stamps/
BUILD_IN_SOURCE ON
BUILD_ALWAYS OFF
GIT_REPOSITORY https://github.com/glfw/glfw
GIT_TAG master
GIT_SHALLOW ON
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DBUILD_SHARED_LIBS:BOOL=OFF
-DBUILD_STATIC_LIBS:BOOL=ON
-DINSTALL_LIBS:BOOL=OFF
-DGLFW_BUILD_DOCS:BOOL=OFF
-DGLFW_BUILD_EXAMPLES:BOOL=OFF
-DGLFW_BUILD_TESTS:BOOL=OFF
-DGLFW_INSTALL:BOOL=ON
-DGLFW_USE_HYBRID_HPG:BOOL=ON
-DUSE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=ON
-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}
-DCMAKE_CXX_STANDARD_REQUIRED=${CMAKE_CXX_STANDARD_REQUIRED}
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS_SILENT}
-DCMAKE_CXX_FLAGS_DEBUG=${CMAKE_CXX_FLAGS_DEBUG}
-DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE}
-DCMAKE_EXE_LINKER_FLAGS=${CMAKE_EXE_LINKER_FLAGS}
-DCMAKE_EXE_LINKER_FLAGS_DEBUG=${CMAKE_EXE_LINKER_FLAGS_DEBUG}
UPDATE_COMMAND ""
INSTALL_COMMAND ""
)
ExternalProject_Get_Property(GLFW SOURCE_DIR)
set (CUSTOM_GLFW ${SOURCE_DIR})
endif (CUSTOM_GLFW STREQUAL "")
target_include_directories(reVision PRIVATE ${CUSTOM_GLFW}/include/ SYSTEM INTERFACE ${CUSTOM_GLFW}/include/)
target_link_libraries(reVision
debug ${CUSTOM_GLFW}/src/Debug/glfw3.lib
optimized ${CUSTOM_GLFW}/src/Release/glfw3.lib
)
###############
# INCLUDE GLM #
###############
set(CUSTOM_GLM "" CACHE PATH "GLM root directory")
if (CUSTOM_GLM STREQUAL "")
ExternalProject_Add(
GLM
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/
STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/external/stamps/
BUILD_IN_SOURCE ON
BUILD_ALWAYS OFF
GIT_REPOSITORY https://github.com/g-truc/glm
GIT_TAG master
GIT_SHALLOW ON
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DBUILD_SHARED_LIBS:BOOL=OFF
-DBUILD_STATIC_LIBS:BOOL=ON
-DGLM_TEST_ENABLE:BOOL=OFF
-DGLM_TEST_ENABLE_CXX_17:BOOL=ON
-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}
-DCMAKE_CXX_STANDARD_REQUIRED=${CMAKE_CXX_STANDARD_REQUIRED}
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS_SILENT}
-DCMAKE_CXX_FLAGS_DEBUG=${CMAKE_CXX_FLAGS_DEBUG}
-DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE}
-DCMAKE_EXE_LINKER_FLAGS=${CMAKE_EXE_LINKER_FLAGS}
-DCMAKE_EXE_LINKER_FLAGS_DEBUG=${CMAKE_EXE_LINKER_FLAGS_DEBUG}
UPDATE_COMMAND ""
INSTALL_COMMAND ""
)
ExternalProject_Get_Property(GLM SOURCE_DIR)
set (CUSTOM_GLM ${SOURCE_DIR})
endif (CUSTOM_GLM STREQUAL "")
target_include_directories(reVision PRIVATE ${CUSTOM_GLM} SYSTEM INTERFACE ${CUSTOM_GLM})
target_link_libraries(reVision
debug ${CUSTOM_GLM}/glm/Debug/glm_static.lib
optimized ${CUSTOM_GLM}/glm/Release/glm_static.lib
)
#####################
# INCLUDE DearIMGUI #
#####################
set(CUSTOM_IMGUI "" CACHE PATH "DearIMGUI root directory")
if (CUSTOM_IMGUI STREQUAL "")
ExternalProject_Add(
IMGUI
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/
STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/external/stamps/
BUILD_IN_SOURCE ON
BUILD_ALWAYS OFF
GIT_REPOSITORY https://github.com/ocornut/imgui
GIT_TAG docking
GIT_SHALLOW ON
CONFIGURE_COMMAND ""
UPDATE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
ExternalProject_Get_Property(IMGUI SOURCE_DIR)
set (CUSTOM_IMGUI ${SOURCE_DIR})
endif (CUSTOM_IMGUI STREQUAL "")
target_include_directories(reVision PRIVATE ${CUSTOM_IMGUI} SYSTEM INTERFACE ${CUSTOM_IMGUI})
##################
# INCLUDE SOLOUD #
##################
set(CUSTOM_SOLOUD "" CACHE PATH "SoLoud Audio Engine root directory")
if (CUSTOM_SOLOUD STREQUAL "")
ExternalProject_Add(
SOLOUD
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/
STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/external/stamps/
SOURCE_SUBDIR contrib
BUILD_IN_SOURCE ON
BUILD_ALWAYS OFF
GIT_REPOSITORY https://github.com/jarikomppa/soloud
GIT_TAG master
GIT_SHALLOW ON
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DBUILD_SHARED_LIBS:BOOL=OFF
-DBUILD_STATIC_LIBS:BOOL=ON
-DINSTALL_LIBS:BOOL=OFF
-DSOLOUD_BACKEND_COREAUDIO:BOOL=OFF
-DSOLOUD_BACKEND_NULL:BOOL=ON
-DSOLOUD_BACKEND_OPENSLES:BOOL=OFF
-DSOLOUD_BACKEND_SDL2:BOOL=OFF
-DSOLOUD_BACKEND_WASAPI:BOOL=ON
-DSOLOUD_BACKEND_WINMM:BOOL=ON
-DSOLOUD_BACKEND_XAUDIO2:BOOL=ON
-DSOLOUD_BUILD_DEMOS:BOOL=OFF
-DSOLOUD_DYNAMIC:BOOL=OFF
-DSOLOUD_STATIC:BOOL=ON
-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}
-DCMAKE_CXX_STANDARD_REQUIRED=${CMAKE_CXX_STANDARD_REQUIRED}
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS_SILENT}
-DCMAKE_CXX_FLAGS_DEBUG=${CMAKE_CXX_FLAGS_DEBUG}
-DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE}
-DCMAKE_EXE_LINKER_FLAGS=${CMAKE_EXE_LINKER_FLAGS}
-DCMAKE_EXE_LINKER_FLAGS_DEBUG=${CMAKE_EXE_LINKER_FLAGS_DEBUG}
UPDATE_COMMAND ""
INSTALL_COMMAND ""
)
ExternalProject_Get_Property(SOLOUD SOURCE_DIR)
set (CUSTOM_SOLOUD ${SOURCE_DIR})
endif (CUSTOM_SOLOUD STREQUAL "")
target_include_directories(reVision PRIVATE ${CUSTOM_SOLOUD}/include/ SYSTEM INTERFACE ${CUSTOM_SOLOUD}/include/)
target_link_libraries(reVision
debug ${CUSTOM_SOLOUD}/contrib/Debug/soloud.lib
optimized ${CUSTOM_SOLOUD}/contrib/rELEASE/soloud.lib
)
#################
# DOXYGEN CHECK #
#################
find_package(Doxygen QUIET)
if (DOXYGEN_FOUND)
option(GENERATE_DOCS "Generate documentation using Doxygen" true)
if (GENERATE_DOCS)
set(DOXYGEN_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/docs/)
set(DOXYGEN_MARKDOWN_SUPPORT YES)
set(DOXYGEN_BUILTIN_STL_SUPPORT YES)
set(DOXYGEN_JAVADOC_AUTOBRIEF YES)
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE ${PROJECT_SOURCE_DIR}/README.md)
set(DOXYGEN_EXCLUDE ${PROJECT_SOURCE_DIR}/external/)
doxygen_add_docs(Documentation ${PROJECT_SOURCE_DIR} COMMENT "Generate docs")
endif (GENERATE_DOCS)
endif (DOXYGEN_FOUND)
# Visual studio specific setting: make the engine the startup project
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT reVision)