fixes to CMakeLists to compile on OS X

This commit is contained in:
Tim Felgentreff 2013-10-02 16:28:16 +02:00
parent 841246e72b
commit 7340710df0

View file

@ -811,6 +811,7 @@ endif()
if(APPLE)
add_definitions(-DUSE_MAC)
set(SDL_LIBRARY ${SDL_LIBRARY} SDLmain)
endif()
if(BSD)
@ -1070,6 +1071,10 @@ if(WIN32 AND MINGW AND ENABLE_STATIC)
set_target_properties(stratagus PROPERTIES LINK_FLAGS "${LINK_FLAGS} -static-libgcc -static-libstdc++ -Wl,--stack,10485760")
endif()
if(APPLE)
set_target_properties(stratagus PROPERTIES LINK_FLAGS "${LINK_FLAGS} -framework libpng -lSDLmain")
endif()
########### next target ###############
set(metaserver_SRCS