mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Mac OS: modified CMake config files to allow use of OPTION_APPLE_X11
to build an X11-using version of FLTK on the Mac OS platform. This matches the recent support of the --enable-x11 option by the configure script on the mac. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -38,13 +38,13 @@ set(CPPFILES
|
||||
widget_panel.cxx
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
if(APPLE AND NOT OPTION_APPLE_X11)
|
||||
set( ICON_NAME fluid.icns )
|
||||
set( ICON_PATH "${PROJECT_SOURCE_DIR}/fluid/Fluid.app/Contents/Resources/${ICON_NAME}" )
|
||||
add_executable(fluid MACOSX_BUNDLE ${CPPFILES} ${ICON_PATH})
|
||||
else()
|
||||
add_executable(fluid ${CPPFILES})
|
||||
endif(APPLE)
|
||||
endif(APPLE AND NOT OPTION_APPLE_X11)
|
||||
|
||||
target_link_libraries(fluid fltk fltk_images fltk_forms)
|
||||
|
||||
@@ -61,7 +61,7 @@ if(HAVE_XRENDER)
|
||||
target_link_libraries(fluid ${X11_Xrender_LIB})
|
||||
endif(HAVE_XRENDER)
|
||||
|
||||
if(APPLE)
|
||||
if(APPLE AND NOT OPTION_APPLE_X11)
|
||||
set_target_properties(fluid PROPERTIES MACOSX_BUNDLE_ICON_FILE ${ICON_NAME})
|
||||
set_target_properties(fluid PROPERTIES RESOURCE ${ICON_PATH})
|
||||
install(TARGETS fluid DESTINATION ${FLTK_BINDIR})
|
||||
@@ -72,7 +72,7 @@ else()
|
||||
LIBRARY DESTINATION ${FLTK_LIBDIR}
|
||||
ARCHIVE DESTINATION ${FLTK_LIBDIR}
|
||||
)
|
||||
endif(APPLE)
|
||||
endif(APPLE AND NOT OPTION_APPLE_X11)
|
||||
|
||||
if(UNIX)
|
||||
install(FILES fluid.desktop
|
||||
|
||||
Reference in New Issue
Block a user