Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 863 Bytes

CMakeLists.txt

File metadata and controls

29 lines (22 loc) · 863 Bytes
 
Mar 22, 2008
Mar 22, 2008
1
2
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
PROJECT(MojoShader)
Mar 28, 2008
Mar 28, 2008
3
4
5
6
7
IF(CMAKE_COMPILER_IS_GNUCC)
ADD_DEFINITIONS(-Wall -ggdb3)
ENDIF(CMAKE_COMPILER_IS_GNUCC)
Mar 28, 2008
Mar 28, 2008
8
9
# testparse uses this when I'm looking at memory usage patterns.
#ADD_DEFINITIONS(-DMOJOSHADER_DEBUG_MALLOC=1)
Mar 28, 2008
Mar 28, 2008
10
Apr 22, 2008
Apr 22, 2008
11
12
13
14
15
16
17
18
19
20
21
22
23
FIND_PACKAGE(SDL)
IF(SDL_FOUND)
INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)
IF(APPLE)
ADD_DEFINITIONS(-I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers)
FIND_LIBRARY(OPENGL_LIBRARY OpenGL)
MARK_AS_ADVANCED(OPENGL_LIBRARY)
SET(EXTRA_LIBS ${OPENGL_LIBRARY})
ENDIF(APPLE)
ENDIF(SDL_FOUND)
Mar 22, 2008
Mar 22, 2008
24
ADD_EXECUTABLE(testparse testparse.c mojoshader.c)
Apr 19, 2008
Apr 19, 2008
25
ADD_EXECUTABLE(finderrors finderrors.c mojoshader.c)
Apr 22, 2008
Apr 22, 2008
26
TARGET_LINK_LIBRARIES(finderrors pthread ${SDL_LIBRARY} ${EXTRA_LIBS})
Feb 9, 2008
Feb 9, 2008
27
28
# End of CMakeLists.txt ...