Added mojoshader_opengl.c to the project file. trunk
authorRyan C. Gordon <icculus@icculus.org>
Sun, 27 Apr 2008 05:27:35 -0400
branchtrunk
changeset 225 b43efdf651ed
parent 224 4acaf8199665
child 226 4a2b3d0b535f
Added mojoshader_opengl.c to the project file.
CMakeLists.txt
--- a/CMakeLists.txt	Sun Apr 27 05:27:07 2008 -0400
+++ b/CMakeLists.txt	Sun Apr 27 05:27:35 2008 -0400
@@ -12,17 +12,10 @@
 IF(SDL_FOUND)
     INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
     ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)
-    IF(APPLE)
-        FIND_LIBRARY(OPENGL_LIBRARY OpenGL)
-        MARK_AS_ADVANCED(OPENGL_LIBRARY)
-        SET(EXTRA_LIBS ${OPENGL_LIBRARY})
-    ELSE(APPLE)
-        SET(EXTRA_LIBS GL)
-    ENDIF(APPLE)
 ENDIF(SDL_FOUND)
 
 ADD_EXECUTABLE(testparse testparse.c mojoshader.c)
-ADD_EXECUTABLE(finderrors finderrors.c mojoshader.c)
+ADD_EXECUTABLE(finderrors finderrors.c mojoshader.c mojoshader_opengl.c)
 TARGET_LINK_LIBRARIES(finderrors ${SDL_LIBRARY} ${EXTRA_LIBS})
 
 # End of CMakeLists.txt ...