author | Ryan C. Gordon <icculus@icculus.org> |
Tue, 22 Apr 2008 00:26:13 -0400 | |
branch | trunk |
changeset 174 | 0eb9e160ff7f |
parent 171 | 4bf769d41b01 |
child 225 | b43efdf651ed |
permissions | -rw-r--r-- |
35 | 1 |
CMAKE_MINIMUM_REQUIRED(VERSION 2.4) |
2 |
PROJECT(MojoShader) |
|
48 | 3 |
|
4 |
IF(CMAKE_COMPILER_IS_GNUCC) |
|
5 |
ADD_DEFINITIONS(-Wall -ggdb3) |
|
6 |
ENDIF(CMAKE_COMPILER_IS_GNUCC) |
|
7 |
||
52 | 8 |
# testparse uses this when I'm looking at memory usage patterns. |
9 |
#ADD_DEFINITIONS(-DMOJOSHADER_DEBUG_MALLOC=1) |
|
48 | 10 |
|
169
7e9d90724cf8
Push parsed shaders through GLSL compiler to see what breaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
153
diff
changeset
|
11 |
FIND_PACKAGE(SDL) |
7e9d90724cf8
Push parsed shaders through GLSL compiler to see what breaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
153
diff
changeset
|
12 |
IF(SDL_FOUND) |
7e9d90724cf8
Push parsed shaders through GLSL compiler to see what breaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
153
diff
changeset
|
13 |
INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR}) |
7e9d90724cf8
Push parsed shaders through GLSL compiler to see what breaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
153
diff
changeset
|
14 |
ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1) |
7e9d90724cf8
Push parsed shaders through GLSL compiler to see what breaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
153
diff
changeset
|
15 |
IF(APPLE) |
7e9d90724cf8
Push parsed shaders through GLSL compiler to see what breaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
153
diff
changeset
|
16 |
FIND_LIBRARY(OPENGL_LIBRARY OpenGL) |
7e9d90724cf8
Push parsed shaders through GLSL compiler to see what breaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
153
diff
changeset
|
17 |
MARK_AS_ADVANCED(OPENGL_LIBRARY) |
7e9d90724cf8
Push parsed shaders through GLSL compiler to see what breaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
153
diff
changeset
|
18 |
SET(EXTRA_LIBS ${OPENGL_LIBRARY}) |
174
0eb9e160ff7f
Patched finderrors to build on Linux again.
Ryan C. Gordon <icculus@icculus.org>
parents:
171
diff
changeset
|
19 |
ELSE(APPLE) |
0eb9e160ff7f
Patched finderrors to build on Linux again.
Ryan C. Gordon <icculus@icculus.org>
parents:
171
diff
changeset
|
20 |
SET(EXTRA_LIBS GL) |
169
7e9d90724cf8
Push parsed shaders through GLSL compiler to see what breaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
153
diff
changeset
|
21 |
ENDIF(APPLE) |
7e9d90724cf8
Push parsed shaders through GLSL compiler to see what breaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
153
diff
changeset
|
22 |
ENDIF(SDL_FOUND) |
7e9d90724cf8
Push parsed shaders through GLSL compiler to see what breaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
153
diff
changeset
|
23 |
|
35 | 24 |
ADD_EXECUTABLE(testparse testparse.c mojoshader.c) |
153
4410cc03dade
Added finderrors.c to revision control.
Ryan C. Gordon <icculus@icculus.org>
parents:
52
diff
changeset
|
25 |
ADD_EXECUTABLE(finderrors finderrors.c mojoshader.c) |
171
4bf769d41b01
Updatged CMakeLists.txt to remove pthread reference.
Ryan C. Gordon <icculus@icculus.org>
parents:
169
diff
changeset
|
26 |
TARGET_LINK_LIBRARIES(finderrors ${SDL_LIBRARY} ${EXTRA_LIBS}) |
1 | 27 |
|
28 |
# End of CMakeLists.txt ... |
|
29 |