]> git.jsancho.org Git - lugaru.git/blobdiff - CMakeLists.txt
Looks like Windows users aren't the only ones that need to be handled carefully....
[lugaru.git] / CMakeLists.txt
index 7e2eac07cea80530386569dc58d60ba4cb293d3e..88f3e50f605b2738b00771022e032d13ba5541b3 100644 (file)
@@ -167,10 +167,12 @@ if(NOT WIN32)
        if (LUGARU_FORCE_INTERNAL_OPENGL)
                include_directories("${DEPDIR}/OpenGL")
        endif (LUGARU_FORCE_INTERNAL_OPENGL)
-elseif(NOT WIN32)
-       include_directories("${DEPDIR}/OpenGL")
 endif(NOT WIN32)
 
+if(WIN32)
+       include_directories("${DEPDIR}/OpenGL")
+endif(WIN32)
+
 option (LUGARU_FORCE_INTERNAL_OPENAL "Force internal libOpenAL, even if there's a system version" False)
 if (NOT LUGARU_FORCE_INTERNAL_OPENAL)
        find_package(OpenAL REQUIRED)
@@ -502,6 +504,9 @@ if(WIN32)
        endif(MINGW)
 else(WIN32)
        install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lugaru DESTINATION ${CMAKE_INSTALL_PREFIX})
+       if(APPLE)
+               install(FILES ${SDLDIR}/lib/macosx/libSDL-1.2.0.dylib DESTINATION ${CMAKE_INSTALL_PREFIX})
+       endif(APPLE)
 endif(WIN32)
 
 install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${CMAKE_INSTALL_PREFIX})