CMakeLists.txt
branchtrunk
changeset 174 0eb9e160ff7f
parent 171 4bf769d41b01
child 225 b43efdf651ed
equal deleted inserted replaced
173:743dbd0e03d8 174:0eb9e160ff7f
    11 FIND_PACKAGE(SDL)
    11 FIND_PACKAGE(SDL)
    12 IF(SDL_FOUND)
    12 IF(SDL_FOUND)
    13     INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
    13     INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
    14     ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)
    14     ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)
    15     IF(APPLE)
    15     IF(APPLE)
    16         ADD_DEFINITIONS(-I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers)
       
    17         FIND_LIBRARY(OPENGL_LIBRARY OpenGL)
    16         FIND_LIBRARY(OPENGL_LIBRARY OpenGL)
    18         MARK_AS_ADVANCED(OPENGL_LIBRARY)
    17         MARK_AS_ADVANCED(OPENGL_LIBRARY)
    19         SET(EXTRA_LIBS ${OPENGL_LIBRARY})
    18         SET(EXTRA_LIBS ${OPENGL_LIBRARY})
       
    19     ELSE(APPLE)
       
    20         SET(EXTRA_LIBS GL)
    20     ENDIF(APPLE)
    21     ENDIF(APPLE)
    21 ENDIF(SDL_FOUND)
    22 ENDIF(SDL_FOUND)
    22 
    23 
    23 ADD_EXECUTABLE(testparse testparse.c mojoshader.c)
    24 ADD_EXECUTABLE(testparse testparse.c mojoshader.c)
    24 ADD_EXECUTABLE(finderrors finderrors.c mojoshader.c)
    25 ADD_EXECUTABLE(finderrors finderrors.c mojoshader.c)