CMakeLists.txt
branchtrunk
changeset 48 86dc2c772d26
parent 35 5749d174b537
child 52 305ddf21d660
--- a/CMakeLists.txt	Thu Mar 27 22:43:36 2008 -0400
+++ b/CMakeLists.txt	Thu Mar 27 22:52:20 2008 -0400
@@ -1,5 +1,13 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
 PROJECT(MojoShader)
+
+IF(CMAKE_COMPILER_IS_GNUCC)
+    ADD_DEFINITIONS(-Wall -ggdb3)
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
+
+# testparse uses this.
+ADD_DEFINITIONS(-DMOJOSHADER_DEBUG_MALLOC=1)
+
 ADD_EXECUTABLE(testparse testparse.c mojoshader.c)
 
 # End of CMakeLists.txt ...