mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 20:06:18 +08:00
Fix macOS bundle: set missing fields for test apps
- MACOSX_BUNDLE_BUNDLE_NAME: CFBundleName - MACOSX_BUNDLE_GUI_IDENTIFIER: CFBundleIdentifier test/demo.cxx: Remove confusing quotes from demo variable output.
This commit is contained in:
@@ -126,7 +126,10 @@ macro (CREATE_EXAMPLE NAME SOURCES LIBRARIES)
|
|||||||
|
|
||||||
if (PLIST)
|
if (PLIST)
|
||||||
set_target_properties (${TARGET_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/${PLIST}")
|
set_target_properties (${TARGET_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/${PLIST}")
|
||||||
endif (PLIST)
|
elseif (MAC_BUNDLE)
|
||||||
|
set_target_properties (${TARGET_NAME} PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "${TARGET_NAME}")
|
||||||
|
set_target_properties (${TARGET_NAME} PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.fltk.${TARGET_NAME}")
|
||||||
|
endif (MAC_BUNDLE AND NOT PLIST)
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Copy macOS "bundle wrapper" (shell script) to target directory.
|
# Copy macOS "bundle wrapper" (shell script) to target directory.
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Main demo program for the Fast Light Tool Kit (FLTK).
|
// Main demo program for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
// Copyright 1998-2020 by Bill Spitzak and others.
|
// Copyright 1998-2021 by Bill Spitzak and others.
|
||||||
//
|
//
|
||||||
// This library is free software. Distribution and use rights are outlined in
|
// This library is free software. Distribution and use rights are outlined in
|
||||||
// the file "COPYING" which should have been included with this file. If this
|
// the file "COPYING" which should have been included with this file. If this
|
||||||
@@ -139,7 +139,7 @@ const char *cmake_intdir = 0;
|
|||||||
|
|
||||||
// debug output function
|
// debug output function
|
||||||
void debug_var(const char *varname, const char *value) {
|
void debug_var(const char *varname, const char *value) {
|
||||||
tty->printf("%-10s = '%s'\n", varname, value);
|
tty->printf("%-10s = %s\n", varname, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show or hide the tty window
|
// Show or hide the tty window
|
||||||
|
|||||||
Reference in New Issue
Block a user