hedgewars/CMakeLists.txt
changeset 11392 f4e19cd88747
parent 11378 cef3fef64c93
child 11403 b894922d58cc
child 11646 42d7f5dbd8dc
equal deleted inserted replaced
11391:bc9650ec9b20 11392:f4e19cd88747
   176     add_flag_append(CMAKE_Pascal_FLAGS "-XLAphysfs=${physfs_output_name}")
   176     add_flag_append(CMAKE_Pascal_FLAGS "-XLAphysfs=${physfs_output_name}")
   177 endif()
   177 endif()
   178 list(APPEND HW_LINK_LIBS physlayer)
   178 list(APPEND HW_LINK_LIBS physlayer)
   179 
   179 
   180 
   180 
   181 #Mix_Init/Mix_Quit from SDL_mixer 1.2.10
       
   182 check_library_exists(${SDL2MIXER_LIBRARY} Mix_Init "" HAVE_MIXINIT)
       
   183 if(HAVE_MIXINIT)
       
   184     add_definitions(-dSDL_MIXER_NEWER)
       
   185 endif(HAVE_MIXINIT)
       
   186 
       
   187 #IMG_Init/IMG_Quit from SDL_image 1.2.8
       
   188 check_library_exists(${SDL2IMAGE_LIBRARY} IMG_Init "" HAVE_IMGINIT)
       
   189 if(HAVE_IMGINIT)
       
   190     add_definitions(-dSDL_IMAGE_NEWER)
       
   191 endif(HAVE_IMGINIT)
       
   192 
       
   193 #opengl 2
   181 #opengl 2
   194 IF(GL2)
   182 IF(GL2)
   195     add_definitions(-dGL2)
   183     add_definitions(-dGL2)
   196 ENDIF(GL2)
   184 ENDIF(GL2)
   197 
   185