CMakeLists.txt
changeset 9112 345a7d41dda9
parent 9093 61d1cd95698e
child 9121 00d99eff96a6
equal deleted inserted replaced
9108:8200b1bdcf83 9112:345a7d41dda9
   968     file(GLOB EXTRA_SOURCES ${PROJECT_SOURCE_DIR}/src/file/cocoa/*.m)
   968     file(GLOB EXTRA_SOURCES ${PROJECT_SOURCE_DIR}/src/file/cocoa/*.m)
   969     set(SOURCE_FILES ${EXTRA_SOURCES} ${SOURCE_FILES})
   969     set(SOURCE_FILES ${EXTRA_SOURCES} ${SOURCE_FILES})
   970     set_source_files_properties(${EXTRA_SOURCES} PROPERTIES LANGUAGE C)
   970     set_source_files_properties(${EXTRA_SOURCES} PROPERTIES LANGUAGE C)
   971     set(HAVE_SDL_FILE TRUE)
   971     set(HAVE_SDL_FILE TRUE)
   972     set(SDL_FRAMEWORK_COCOA 1)
   972     set(SDL_FRAMEWORK_COCOA 1)
       
   973     set(SDL_FRAMEWORK_COREVIDEO 1)
   973   else()
   974   else()
   974     message_error("SDL_FILE must be enabled to build on MacOS X")
   975     message_error("SDL_FILE must be enabled to build on MacOS X")
   975   endif()
   976   endif()
   976 
   977 
   977   if(SDL_AUDIO)
   978   if(SDL_AUDIO)
  1027     set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
  1028     set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
  1028     set(HAVE_SDL_FILESYSTEM TRUE)
  1029     set(HAVE_SDL_FILESYSTEM TRUE)
  1029   endif()
  1030   endif()
  1030 
  1031 
  1031   # Actually load the frameworks at the end so we don't duplicate include.
  1032   # Actually load the frameworks at the end so we don't duplicate include.
       
  1033   if(SDL_FRAMEWORK_COREVIDEO)
       
  1034     find_library(COREVIDEO CoreVideo)
       
  1035     list(APPEND EXTRA_LIBS ${COREVIDEO})
       
  1036   endif()
  1032   if(SDL_FRAMEWORK_COCOA)
  1037   if(SDL_FRAMEWORK_COCOA)
  1033     find_library(COCOA_LIBRARY Cocoa)
  1038     find_library(COCOA_LIBRARY Cocoa)
  1034     list(APPEND EXTRA_LIBS ${COCOA_LIBRARY})
  1039     list(APPEND EXTRA_LIBS ${COCOA_LIBRARY})
  1035   endif()
  1040   endif()
  1036   if(SDL_FRAMEWORK_IOKIT)
  1041   if(SDL_FRAMEWORK_IOKIT)