Commit e57eeac0 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

cmake: Include required frameworks for mac RenderWidget

parent a0447395
...@@ -110,6 +110,11 @@ INCLUDE_DIRECTORIES(${LIBVLC_INCLUDE_DIR}) ...@@ -110,6 +110,11 @@ INCLUDE_DIRECTORIES(${LIBVLC_INCLUDE_DIR})
FIND_PACKAGE(frei0r REQUIRED) FIND_PACKAGE(frei0r REQUIRED)
if(APPLE)
find_library(FOUNDATION_FRAMEWORK Foundation)
find_library(APPKIT_FRAMEWORK AppKit)
endif()
INCLUDE_DIRECTORIES(${FREI0R_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${FREI0R_INCLUDE_DIR})
# Manually set Qt5 path for OSX installed using brew # Manually set Qt5 path for OSX installed using brew
......
...@@ -246,6 +246,8 @@ ELSE(NOT WITH_GUI) ...@@ -246,6 +246,8 @@ ELSE(NOT WITH_GUI)
MACOSX_PACKAGE_LOCATION Resources) MACOSX_PACKAGE_LOCATION Resources)
SET(MACOSX_BUNDLE_ICON_FILE VLMC.icns) SET(MACOSX_BUNDLE_ICON_FILE VLMC.icns)
LIST( APPEND VLMC_SRCS Gui/preview/RenderWidget.mm ) LIST( APPEND VLMC_SRCS Gui/preview/RenderWidget.mm )
message(${FOUNDATION_FRAMEWORK})
list( APPEND VLMC_LIBS ${FOUNDATION_FRAMEWORK} ${APPKIT_FRAMEWORK} )
ELSE( APPLE ) ELSE( APPLE )
## Since there's no implementation on non-apple platforms, we need to process ## Since there's no implementation on non-apple platforms, we need to process
## the header to generate MOC ## the header to generate MOC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment