CMake support of the Darwin+XQuartz test platform
This commit is contained in:
parent
65ea0f5f43
commit
ef7e2410e3
@ -63,6 +63,16 @@ if((NOT APPLE OR OPTION_APPLE_X11) AND NOT WIN32)
|
||||
endif(X11_FOUND)
|
||||
endif((NOT APPLE OR OPTION_APPLE_X11) AND NOT WIN32)
|
||||
|
||||
if (OPTION_APPLE_X11)
|
||||
include_directories (AFTER SYSTEM /opt/X11/include/freetype2)
|
||||
if (PATH_TO_XLIBS)
|
||||
set (LDFLAGS "-L${PATH_TO_XLIBS} ${LDFLAGS}")
|
||||
endif (PATH_TO_XLIBS)
|
||||
if (X11_INCLUDE_DIR)
|
||||
list (APPEND FLTK_CFLAGS "-I${X11_INCLUDE_DIR}")
|
||||
endif (X11_INCLUDE_DIR)
|
||||
endif (OPTION_APPLE_X11)
|
||||
|
||||
#######################################################################
|
||||
option(OPTION_USE_POLL "use poll if available" OFF)
|
||||
mark_as_advanced(OPTION_USE_POLL)
|
||||
|
@ -99,9 +99,11 @@ if(APPLE)
|
||||
set(HAVE_SCANDIR 1)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
|
||||
if(OPTION_APPLE_X11)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -U__APPLE__ -mmacosx-version-min=10.3")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -U__APPLE__")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -U__APPLE__")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/opt/X11/lib -lfontconfig")
|
||||
if(${CMAKE_SYSTEM_VERSION} VERSION_GREATER 16.9.0)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_LIBCPP_HAS_THREAD_API_PTHREAD")
|
||||
endif(${CMAKE_SYSTEM_VERSION} VERSION_GREATER 16.9.0)
|
||||
else()
|
||||
set(__APPLE_QUARTZ__ 1)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework Cocoa")
|
||||
|
Loading…
Reference in New Issue
Block a user