[vlmc-devel] CMake: Add RenderWidget, force linking to Cocoa framework on Mac

Rohit Yadav git at videolan.org
Fri Mar 25 09:06:09 CET 2011


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Fri Mar 25 18:57:04 2011 +0530| [023a9818c989800e783d8f1ee3c689ea6619a3ec] | committer: Rohit Yadav

CMake: Add RenderWidget, force linking to Cocoa framework on Mac

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=023a9818c989800e783d8f1ee3c689ea6619a3ec
---

 CMakeLists.txt     |    5 +++++
 src/CMakeLists.txt |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bf36996..2d294fe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -141,6 +141,11 @@ IF (NOT WIN32)
           ${LIBVLC_LIBRARY}
           ${LIBVLCCORE_LIBRARY})
 
+    IF (APPLE) # Fails to link to Cocoa framework automatically
+        SET (VLMC_LIBS ${VLMC_LIBS}
+                       ${CMAKE_OSX_SYSROOT}/System/Library/Frameworks/Cocoa.framework)
+    ENDIF(APPLE)
+
     INCLUDE(${QT_USE_FILE})
     ADD_DEFINITIONS(${QT_DEFINITIONS})
 ELSE (NOT WIN32)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f621cd4..de9bcee 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -181,6 +181,7 @@ ELSE(NOT WITH_GUI)
         Gui/preview/LCDTimecode.cpp
         Gui/preview/PreviewRuler.cpp
         Gui/preview/PreviewWidget.cpp
+        Gui/preview/RenderWidget.mm
         Gui/project/GuiProjectManager.cpp
         Gui/settings/BoolWidget.cpp
         Gui/settings/ColorWidget.cpp
@@ -252,6 +253,7 @@ ELSE(NOT WITH_GUI)
         Gui/preview/LCDTimecode.h
         Gui/preview/PreviewRuler.h
         Gui/preview/PreviewWidget.h
+        Gui/preview/RenderWidget.h
         Gui/project/GuiProjectManager.h
         Gui/settings/BoolWidget.h
         Gui/settings/ColorWidget.h



More information about the Vlmc-devel mailing list