-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
33 lines (20 loc) · 867 Bytes
/
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
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )
# Port to Win32 system in progress
PROJECT( DeferredRenderer )
# some assert are badly done (set on important action) so we can't use release mode yet)
#cmake .. -DCMAKE_BUILD_TYPE:STRING=Release
#SET( CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") #-msse (to enable SSE instruction)
SET( CMAKE_CXX_FLAGS_DEBUG "-O0 -g -Wall")
FILE( GLOB_RECURSE SRC src/* )
INCLUDE_DIRECTORIES( src/ extern/ )
# Dynamic libraries from the system
SET( PLATFORM_LIBS GL glut IL m assimp)
# Static libraries to link
#LINK_LIBRARIES("-L ../extern/FreeImage/ -lfreeimage")
# Static libraries to build
FILE( GLOB GLEW extern/GL/*.c extern/GL/*.h )
ADD_LIBRARY( glew ${GLEW} )
FILE( GLOB GLSW extern/glsw/*.c extern/glsw/*.h )
ADD_LIBRARY( glsw ${GLSW} )
ADD_EXECUTABLE( ../dr ${SRC} )
TARGET_LINK_LIBRARIES( ../dr ${PLATFORM_LIBS} glew glsw )