diff options
| author | Matthias Melcher <git@matthiasm.com> | 2021-12-03 20:29:20 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2021-12-03 20:29:20 +0100 |
| commit | c55fd6f7045e8899f341f7a73c01e5749015bfc1 (patch) | |
| tree | 6fc2e5e527db1a0c7e6bbe490efd88ca5c03a870 /fluid | |
| parent | 36af6a57295a5f3c674134cab60dc644c96e97fa (diff) | |
CMake for Apple Xcode usability improvements
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/CMakeLists.txt | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/fluid/CMakeLists.txt b/fluid/CMakeLists.txt index e791de655..c5a2b0dd0 100644 --- a/fluid/CMakeLists.txt +++ b/fluid/CMakeLists.txt @@ -37,18 +37,41 @@ set (CPPFILES widget_panel.cxx ) +# also list header files in Apple's Xcode IDE + +set (HEADERFILES + CodeEditor.h + Fl_Type.h + Fl_Widget_Type.h + Fluid_Image.h + Shortcut_Button.h + StyleParse.h + about_panel.h + alignment_panel.h + comments.h + function_panel.h + print_panel.h + template_panel.h + undo.h + widget_panel.h +) + # ExternalCodeEditor: platform specific files if (WIN32) list (APPEND CPPFILES ExternalCodeEditor_WIN32.cxx) + list (APPEND HEADERFILES ExternalCodeEditor_WIN32.h) else () list (APPEND CPPFILES ExternalCodeEditor_UNIX.cxx) + list (APPEND HEADERFILES ExternalCodeEditor_UNIX.h) endif (WIN32) +source_group("Header Files" FILES ${HEADERFILES}) + if (APPLE AND (NOT OPTION_APPLE_X11) AND (NOT OPTION_APPLE_SDL)) set (ICON_NAME fluid.icns) set (ICON_PATH "${CMAKE_CURRENT_SOURCE_DIR}/icons/${ICON_NAME}") - add_executable (fluid MACOSX_BUNDLE ${CPPFILES} ${ICON_PATH}) + add_executable (fluid MACOSX_BUNDLE ${CPPFILES} ${HEADERFILES} ${ICON_PATH}) # create macOS bundle wrapper script @@ -64,7 +87,7 @@ if (APPLE AND (NOT OPTION_APPLE_X11) AND (NOT OPTION_APPLE_SDL)) unset (WRAPPER) else () - add_executable (fluid WIN32 ${CPPFILES}) + add_executable (fluid WIN32 ${CPPFILES} ${HEADERFILES}) endif (APPLE AND (NOT OPTION_APPLE_X11) AND (NOT OPTION_APPLE_SDL)) target_link_libraries (fluid fltk fltk_images fltk_forms) |
