hedgewars/CMakeLists.txt
branchsdl2transition
changeset 11378 cef3fef64c93
parent 11377 ee86941e2ade
child 11392 f4e19cd88747
equal deleted inserted replaced
11377:ee86941e2ade 11378:cef3fef64c93
   122 #generic folder where our libraries reside
   122 #generic folder where our libraries reside
   123 add_flag_append(CMAKE_Pascal_FLAGS "-Fl${LIBRARY_OUTPUT_PATH}")
   123 add_flag_append(CMAKE_Pascal_FLAGS "-Fl${LIBRARY_OUTPUT_PATH}")
   124 
   124 
   125 #DEPENDECIES AND EXECUTABLES SECTION
   125 #DEPENDECIES AND EXECUTABLES SECTION
   126 if(APPLE AND (NOT BUILD_ENGINE_LIBRARY))
   126 if(APPLE AND (NOT BUILD_ENGINE_LIBRARY))
   127     #on OSX we need to provide the SDL_main() function when building as
       
   128     #executable and the entry point too
       
   129     add_subdirectory(sdlmain)
       
   130     list(APPEND HW_LINK_LIBS SDLmain)
       
   131     add_flag_append(CMAKE_Pascal_FLAGS "-k-lsdlmain")
       
   132     add_flag_append(CMAKE_Pascal_FLAGS "-XMSDL_main")
       
   133     #OpenGL deps
   127     #OpenGL deps
   134     add_flag_append(CMAKE_Pascal_FLAGS "-k-framework -kCocoa")
   128     add_flag_append(CMAKE_Pascal_FLAGS "-k-framework -kCocoa")
   135     add_flag_append(CMAKE_Pascal_FLAGS "-k-framework -kOpenGL")
   129     add_flag_append(CMAKE_Pascal_FLAGS "-k-framework -kOpenGL")
   136 
   130 
   137     #set the correct library or framework style depending on the main SDL
   131     #set the correct library or framework style depending on the main SDL