CMakeLists.txt
branchtrunk
changeset 269 fbc4e1843809
parent 254 13184ff204b9
child 328 6ea15911de70
equal deleted inserted replaced
268:6d5a1323db28 269:fbc4e1843809
    15 
    15 
    16 FIND_PACKAGE(SDL)
    16 FIND_PACKAGE(SDL)
    17 IF(SDL_FOUND)
    17 IF(SDL_FOUND)
    18     INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
    18     INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
    19     ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)
    19     ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)
       
    20     ADD_EXECUTABLE(glcaps glcaps.c)
       
    21     TARGET_LINK_LIBRARIES(glcaps ${SDL_LIBRARY})
    20 ENDIF(SDL_FOUND)
    22 ENDIF(SDL_FOUND)
    21 
    23 
    22 ADD_EXECUTABLE(testparse testparse.c mojoshader.c)
    24 ADD_EXECUTABLE(testparse testparse.c mojoshader.c)
    23 ADD_EXECUTABLE(finderrors finderrors.c mojoshader.c mojoshader_opengl.c)
    25 ADD_EXECUTABLE(finderrors finderrors.c mojoshader.c mojoshader_opengl.c)
    24 TARGET_LINK_LIBRARIES(finderrors ${SDL_LIBRARY} ${EXTRA_LIBS})
    26 TARGET_LINK_LIBRARIES(finderrors ${SDL_LIBRARY} ${EXTRA_LIBS})