CMakeLists.txt
changeset 9112 345a7d41dda9
parent 9093 61d1cd95698e
child 9121 00d99eff96a6
     1.1 --- a/CMakeLists.txt	Thu Aug 21 23:22:46 2014 -0400
     1.2 +++ b/CMakeLists.txt	Sat Aug 23 10:47:50 2014 -0700
     1.3 @@ -970,6 +970,7 @@
     1.4      set_source_files_properties(${EXTRA_SOURCES} PROPERTIES LANGUAGE C)
     1.5      set(HAVE_SDL_FILE TRUE)
     1.6      set(SDL_FRAMEWORK_COCOA 1)
     1.7 +    set(SDL_FRAMEWORK_COREVIDEO 1)
     1.8    else()
     1.9      message_error("SDL_FILE must be enabled to build on MacOS X")
    1.10    endif()
    1.11 @@ -1029,6 +1030,10 @@
    1.12    endif()
    1.13  
    1.14    # Actually load the frameworks at the end so we don't duplicate include.
    1.15 +  if(SDL_FRAMEWORK_COREVIDEO)
    1.16 +    find_library(COREVIDEO CoreVideo)
    1.17 +    list(APPEND EXTRA_LIBS ${COREVIDEO})
    1.18 +  endif()
    1.19    if(SDL_FRAMEWORK_COCOA)
    1.20      find_library(COCOA_LIBRARY Cocoa)
    1.21      list(APPEND EXTRA_LIBS ${COCOA_LIBRARY})