From: Rafa Gaitán Date: Mon, 7 Dec 2009 18:14:29 +0000 (+0100) Subject: removed from linker sdl, and added option to final version X-Git-Url: http://slack.codemaniacs.com/git/?a=commitdiff_plain;h=1bdc133604acc69c0db3c45e51a0a6247235c0fa;p=fov120.git removed from linker sdl, and added option to final version --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 449cd29..d22cafa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,13 +59,28 @@ include_directories( ${SDL_INCLUDE_DIR} ) +OPTION(FINAL_VERSION "Set to on to remove all link libraries that are not needed in the final version" OFF) + SET(LIBRARIES - ${SDL_LIBRARY} - ${OPENGL_LIBRARIES} m dl ${CMAKE_THREAD_LIBS_INIT} ) +IF(APPLE) + SET(LIBRARIES + ${LIBRARIES} + ${SDL_LIBRARY} + ${OPENGL_LIBRARIES} + ) +ELSE(APPLE) + IF(NOT FINAL_VERSION) + SET(LIBRARIES + ${LIBRARIES} + ${OPENGL_LIBRARIES} + ) + ENDIF(NOT FINAL_VERSION) +ENDIF(APPLE) + SET(IS_APPLICATION 0) SETUP_DEMO_LAUNCHER(${DEMO_NAME}) #############