CMakeLists.txt
branchtrunk
changeset 254 13184ff204b9
parent 225 b43efdf651ed
child 269 fbc4e1843809
equal deleted inserted replaced
253:6717d8bffa79 254:13184ff204b9
     5     ADD_DEFINITIONS(-Wall -ggdb3)
     5     ADD_DEFINITIONS(-Wall -ggdb3)
     6 ENDIF(CMAKE_COMPILER_IS_GNUCC)
     6 ENDIF(CMAKE_COMPILER_IS_GNUCC)
     7 
     7 
     8 # testparse uses this when I'm looking at memory usage patterns.
     8 # testparse uses this when I'm looking at memory usage patterns.
     9 #ADD_DEFINITIONS(-DMOJOSHADER_DEBUG_MALLOC=1)
     9 #ADD_DEFINITIONS(-DMOJOSHADER_DEBUG_MALLOC=1)
       
    10 
       
    11 IF(MSVC)
       
    12     ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS=1)
       
    13     ADD_DEFINITIONS(-TP)  # force .c files to compile as C++.
       
    14 ENDIF(MSVC)
    10 
    15 
    11 FIND_PACKAGE(SDL)
    16 FIND_PACKAGE(SDL)
    12 IF(SDL_FOUND)
    17 IF(SDL_FOUND)
    13     INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
    18     INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
    14     ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)
    19     ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)