From 6d72d430e4b1c4640ca52bb7516d17890583ca63 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 28 Jan 2016 00:31:59 +0000 Subject: (Try to) fix CMake for Apple, prepare for Windows drivers. This update is tested on Linux only, but should hopefully work on Mac OS X with CMake + make and/or CMake + Xcode. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/CMakeLists.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 83fac14ad..a62a4999a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -150,6 +150,9 @@ set(CPPFILES set(DRIVER_FILES) if (USE_X11) + + # X11 (including APPLE with X11) + # FILE(GLOB DRIVER_FILES drivers/Xlib/Fl_Xlib_Graphics_Driver_*.cxx) set(DRIVER_FILES drivers/Xlib/Fl_Xlib_Graphics_Driver_arci.cxx @@ -168,6 +171,29 @@ if (USE_X11) drivers/Xlib/Fl_Xlib_Graphics_Driver_font_x.cxx ) endif (USE_XFT) + +elseif (APPLE) + + # Apple Quartz + + # FILE(GLOB DRIVER_FILES drivers/Quartz/Fl_Quartz_Graphics_Driver_*.cxx) + set(DRIVER_FILES + driversQuartz/Fl_Quartz_Graphics_Driver.cxx + driversQuartz/Fl_Quartz_Graphics_Driver_color.cxx + driversQuartz/Fl_Quartz_Graphics_Driver_rect.cxx + driversQuartz/Fl_Quartz_Graphics_Driver_font.cxx + driversQuartz/Fl_Quartz_Graphics_Driver_vertex.cxx + driversQuartz/Fl_Quartz_Graphics_Driver_image.cxx + driversQuartz/Fl_Quartz_Printer_Graphics_Driver.cxx + driversQuartz/Fl_Quartz_Graphics_Driver_arci.cxx + driversQuartz/Fl_Quartz_Graphics_Driver_line_style.cxx + ) + +else () + + # Windows (GDI) + # not yet "converted" + endif (USE_X11) set(CPPFILES -- cgit v1.2.3