Fixed cmake under Mac OS X

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2010-11-17 16:47:54 +00:00
parent bc66ca6264
commit c077050d05
2 changed files with 9 additions and 10 deletions

View File

@ -83,7 +83,11 @@ include(TestBigEndian)
TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
if(APPLE)
set(USE_QUARTZ ON)
set(__APPLE_QUARTZ__ 1)
set(HAVE_STRTOLL 1)
set(HAVE_STRCASECMP 1)
set(HAVE_DIRENT_H 1)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework Cocoa -framework Carbon -framework AudioToolBox")
endif(APPLE)
if(WIN32)

View File

@ -117,19 +117,14 @@
#define USE_XDBE HAVE_XDBE
/*
* USE_QUARTZ:
* __APPLE_QUARTZ__:
*
* Use Quartz instead of Quickdraw on Apple Mac OS X machines.
* FLTK was originally ported to Quickdraw which is no longer
* supported by Apple. If USE_QUARTZ is defined, FLTK will be
* compiled using Quartz instead. This flag has no meaning on
* other operating systems.
* If __APPLE_QUARTZ__ is defined, FLTK will be
* compiled using Quartz. This flag has no meaning on
* other operating systems than Mac OS X.
*/
#cmakedefine USE_QUARTZ
#cmakedefine __APPLE_QUARTZ__ @__APPLE_QUARTZ__@
#cmakedefine __APPLE_COCOA__ @__APPLE_COCOA__@
#cmakedefine __APPLE_QD__ @__APPLE_QD__@
/*