From 1bdc133604acc69c0db3c45e51a0a6247235c0fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=20Gait=C3=A1n?= Date: Mon, 7 Dec 2009 19:14:29 +0100 Subject: [PATCH] removed from linker sdl, and added option to final version --- CMakeLists.txt | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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}) ############# -- 2.34.1