CMakeLists.txt
branchtrunk
changeset 225 b43efdf651ed
parent 174 0eb9e160ff7f
child 254 13184ff204b9
equal deleted inserted replaced
224:4acaf8199665 225:b43efdf651ed
    10 
    10 
    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)
       
    16         FIND_LIBRARY(OPENGL_LIBRARY OpenGL)
       
    17         MARK_AS_ADVANCED(OPENGL_LIBRARY)
       
    18         SET(EXTRA_LIBS ${OPENGL_LIBRARY})
       
    19     ELSE(APPLE)
       
    20         SET(EXTRA_LIBS GL)
       
    21     ENDIF(APPLE)
       
    22 ENDIF(SDL_FOUND)
    15 ENDIF(SDL_FOUND)
    23 
    16 
    24 ADD_EXECUTABLE(testparse testparse.c mojoshader.c)
    17 ADD_EXECUTABLE(testparse testparse.c mojoshader.c)
    25 ADD_EXECUTABLE(finderrors finderrors.c mojoshader.c)
    18 ADD_EXECUTABLE(finderrors finderrors.c mojoshader.c mojoshader_opengl.c)
    26 TARGET_LINK_LIBRARIES(finderrors ${SDL_LIBRARY} ${EXTRA_LIBS})
    19 TARGET_LINK_LIBRARIES(finderrors ${SDL_LIBRARY} ${EXTRA_LIBS})
    27 
    20 
    28 # End of CMakeLists.txt ...
    21 # End of CMakeLists.txt ...
    29 
    22