diff --git a/gui/browsable/CMakeLists.txt b/gui/browsable/CMakeLists.txt index c435306664541..91a97437dfb3d 100644 --- a/gui/browsable/CMakeLists.txt +++ b/gui/browsable/CMakeLists.txt @@ -8,25 +8,29 @@ # CMakeLists.txt file for building ROOT gui/browsable ############################################################################ +set(BROWSABLE_HEADERS + ROOT/Browsable/RAnyObjectHolder.hxx + ROOT/Browsable/RElement.hxx + ROOT/Browsable/RGroup.hxx + ROOT/Browsable/RHolder.hxx + ROOT/Browsable/RItem.hxx + ROOT/Browsable/RLevelIter.hxx + ROOT/Browsable/RProvider.hxx + ROOT/Browsable/RShared.hxx + ROOT/Browsable/RSysFile.hxx + ROOT/Browsable/RSysFileItem.hxx + ROOT/Browsable/RUnique.hxx + ROOT/Browsable/RWrapper.hxx + ROOT/Browsable/TKeyItem.hxx + ROOT/Browsable/TObjectElement.hxx + ROOT/Browsable/TObjectHolder.hxx + ROOT/Browsable/TObjectItem.hxx + ROOT/Browsable/RNTupleItem.hxx +) + ROOT_STANDARD_LIBRARY_PACKAGE(ROOTBrowsable HEADERS - ROOT/Browsable/RAnyObjectHolder.hxx - ROOT/Browsable/RElement.hxx - ROOT/Browsable/RGroup.hxx - ROOT/Browsable/RHolder.hxx - ROOT/Browsable/RItem.hxx - ROOT/Browsable/RLevelIter.hxx - ROOT/Browsable/RProvider.hxx - ROOT/Browsable/RShared.hxx - ROOT/Browsable/RSysFile.hxx - ROOT/Browsable/RSysFileItem.hxx - ROOT/Browsable/RUnique.hxx - ROOT/Browsable/RWrapper.hxx - ROOT/Browsable/TKeyItem.hxx - ROOT/Browsable/TObjectElement.hxx - ROOT/Browsable/TObjectHolder.hxx - ROOT/Browsable/TObjectItem.hxx - ROOT/Browsable/RNTupleItem.hxx + ${BROWSABLE_HEADERS} SOURCES src/RElement.cxx src/RGroup.cxx @@ -41,6 +45,23 @@ ROOT_STANDARD_LIBRARY_PACKAGE(ROOTBrowsable Hist ) +set(RELATIVE_INC_HEADERS ${BROWSABLE_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(ROOTBrowsable +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ src/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h + src/RFieldHolder.hxx + src/RFieldProvider.hxx + src/RVisualizationHolder.hxx + src/RVisualizationProvider.hxx + src/TLeafProvider.hxx +) + # provider for generic drawing of TObject on TCanvas ROOT_LINKER_LIBRARY(ROOTObjectDraw6Provider diff --git a/gui/browserv7/CMakeLists.txt b/gui/browserv7/CMakeLists.txt index 49d9a188c9383..f521961fa390b 100644 --- a/gui/browserv7/CMakeLists.txt +++ b/gui/browserv7/CMakeLists.txt @@ -49,14 +49,18 @@ ROOT_LINKER_LIBRARY(ROOTBrowserTreeWidget ROOTTreeViewer ) +set(BROWSERV7_HEADERS + ROOT/RBrowser.hxx + ROOT/RBrowserData.hxx + ROOT/RBrowserReply.hxx + ROOT/RBrowserRequest.hxx + ROOT/RFileDialog.hxx + ROOT/RWebBrowserImp.hxx +) + ROOT_STANDARD_LIBRARY_PACKAGE(ROOTBrowserv7 HEADERS - ROOT/RBrowser.hxx - ROOT/RBrowserData.hxx - ROOT/RBrowserReply.hxx - ROOT/RBrowserRequest.hxx - ROOT/RFileDialog.hxx - ROOT/RWebBrowserImp.hxx + ${BROWSERV7_HEADERS} SOURCES src/RBrowser.cxx src/RBrowserData.cxx @@ -70,4 +74,15 @@ ROOT_STANDARD_LIBRARY_PACKAGE(ROOTBrowserv7 RIO ) +set(RELATIVE_INC_HEADERS ${BROWSERV7_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(ROOTBrowsable +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h +) diff --git a/gui/cefdisplay/CMakeLists.txt b/gui/cefdisplay/CMakeLists.txt index 7aa53b38405bc..c605240b6741d 100644 --- a/gui/cefdisplay/CMakeLists.txt +++ b/gui/cefdisplay/CMakeLists.txt @@ -62,6 +62,16 @@ set(CEF_MAIN src/cef_main.cxx) ROOT_LINKER_LIBRARY(${libname} ${CEF_sources} ${CEF_platform} LIBRARIES ${CMAKE_DL_LIBS} ${CEF_LIBRARY} ${CEF_DLL_WRAPPER} ${CEF_LIB_DEPENDENCY} DEPENDENCIES RHTTP ASImage ROOTWebDisplay) +target_sources(${libname} +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ + FILES + inc/gui_handler.h + inc/RCefWebDisplayHandle.hxx + inc/simple_app.h +) target_compile_definitions(${libname} PRIVATE NDEBUG) diff --git a/gui/fitpanel/CMakeLists.txt b/gui/fitpanel/CMakeLists.txt index 9000277978071..50556917c5825 100644 --- a/gui/fitpanel/CMakeLists.txt +++ b/gui/fitpanel/CMakeLists.txt @@ -8,12 +8,16 @@ # CMakeLists.txt file for building ROOT gui/fitpanel package ############################################################################ +set(FITPANEL_HEADERS + TAdvancedGraphicsDialog.h + TFitEditor.h + TFitParametersDialog.h + TTreeInput.h +) + ROOT_STANDARD_LIBRARY_PACKAGE(FitPanel HEADERS - TAdvancedGraphicsDialog.h - TFitEditor.h - TFitParametersDialog.h - TTreeInput.h + ${FITPANEL_HEADERS} SOURCES src/TAdvancedGraphicsDialog.cxx src/TFitEditor.cxx @@ -31,4 +35,17 @@ ROOT_STANDARD_LIBRARY_PACKAGE(FitPanel TreePlayer ) +set(RELATIVE_INC_HEADERS ${FITPANEL_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(FitPanel +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ src/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h + src/CommonDefs.h +) + ROOT_ADD_TEST_SUBDIRECTORY(test) diff --git a/gui/fitpanelv7/CMakeLists.txt b/gui/fitpanelv7/CMakeLists.txt index e89a26626bfab..5df9901a6e547 100644 --- a/gui/fitpanelv7/CMakeLists.txt +++ b/gui/fitpanelv7/CMakeLists.txt @@ -13,10 +13,14 @@ if (runtime_cxxmodules AND WIN32) set (EXTRA_DICT_OPTS NO_CXXMODULE) endif() +set(FITPANELV7_HEADERS + ROOT/RFitPanel.hxx + ROOT/RFitPanelModel.hxx +) + ROOT_STANDARD_LIBRARY_PACKAGE(ROOTFitPanelv7 HEADERS - ROOT/RFitPanel.hxx - ROOT/RFitPanelModel.hxx + ${FITPANELV7_HEADERS} SOURCES RFitPanel.cxx RFitPanelModel.cxx @@ -29,3 +33,15 @@ ROOT_STANDARD_LIBRARY_PACKAGE(ROOTFitPanelv7 ROOTGpadv7 ${EXTRA_DICT_OPTS} ) + +set(RELATIVE_INC_HEADERS ${FITPANELV7_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(ROOTFitPanelv7 +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h +) diff --git a/gui/ged/CMakeLists.txt b/gui/ged/CMakeLists.txt index 99c2e08b74303..11b51aef445a1 100644 --- a/gui/ged/CMakeLists.txt +++ b/gui/ged/CMakeLists.txt @@ -13,36 +13,40 @@ if (runtime_cxxmodules AND WIN32) set (EXTRA_DICT_OPTS NO_CXXMODULE) endif() +set(GED_HEADERS + HelpSMText.h + TArrowEditor.h + TAttFillEditor.h + TAttLineEditor.h + TAttMarkerEditor.h + TAttTextEditor.h + TAxisEditor.h + TCurlyArcEditor.h + TCurlyLineEditor.h + TF1Editor.h + TFrameEditor.h + TFunctionParametersDialog.h + TGedEditor.h + TGedFrame.h + TGedMarkerSelect.h + TGedPatternSelect.h + TGraphEditor.h + TH1Editor.h + TH2Editor.h + TLineEditor.h + TPadEditor.h + TPaveStatsEditor.h + TPieEditor.h + TPieSliceEditor.h + TStyleDialog.h + TStyleManager.h + TStylePreview.h + TTextEditor.h +) + ROOT_STANDARD_LIBRARY_PACKAGE(Ged HEADERS - HelpSMText.h - TArrowEditor.h - TAttFillEditor.h - TAttLineEditor.h - TAttMarkerEditor.h - TAttTextEditor.h - TAxisEditor.h - TCurlyArcEditor.h - TCurlyLineEditor.h - TF1Editor.h - TFrameEditor.h - TFunctionParametersDialog.h - TGedEditor.h - TGedFrame.h - TGedMarkerSelect.h - TGedPatternSelect.h - TGraphEditor.h - TH1Editor.h - TH2Editor.h - TLineEditor.h - TPadEditor.h - TPaveStatsEditor.h - TPieEditor.h - TPieSliceEditor.h - TStyleDialog.h - TStyleManager.h - TStylePreview.h - TTextEditor.h + ${GED_HEADERS} SOURCES src/HelpSMText.cxx src/TArrowEditor.cxx @@ -81,3 +85,15 @@ ROOT_STANDARD_LIBRARY_PACKAGE(Ged TreePlayer ${EXTRA_DICT_OPTS} ) + +set(RELATIVE_INC_HEADERS ${GED_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(Ged +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h +) diff --git a/gui/gui/CMakeLists.txt b/gui/gui/CMakeLists.txt index 1bf64a8f34e2f..8fb94e3d54695 100644 --- a/gui/gui/CMakeLists.txt +++ b/gui/gui/CMakeLists.txt @@ -8,102 +8,106 @@ # CMakeLists.txt file for building ROOT gui/gui package ############################################################################ +set(GUI_HEADERS + HelpText.h + TG3DLine.h + TGApplication.h + TGButton.h + TGButtonGroup.h + TGCanvas.h + TGClient.h + TGColorDialog.h + TGColorSelect.h + TGComboBox.h + TGCommandPlugin.h + TGDNDManager.h + TGDimension.h + TGDockableFrame.h + TGDoubleSlider.h + TGEventHandler.h + TGFSComboBox.h + TGFSContainer.h + TGFileBrowser.h + TGFileDialog.h + TGFont.h + TGFontDialog.h + TGFrame.h + TGGC.h + TGIcon.h + TGIdleHandler.h + TGImageMap.h + TGInputDialog.h + TGLabel.h + TGLayout.h + TGListBox.h + TGListTree.h + TGListView.h + TGMdi.h + TGMdiDecorFrame.h + TGMdiFrame.h + TGMdiMainFrame.h + TGMdiMenu.h + TGMenu.h + TGMimeTypes.h + TGMsgBox.h + TGNumberEntry.h + TGObject.h + TGPack.h + TGPasswdDialog.h + TGPicture.h + TGProgressBar.h + TGRedirectOutputGuard.h + TGResourcePool.h + TGScrollBar.h + TGShapedFrame.h + TGShutter.h + TGSimpleTable.h + TGSimpleTableInterface.h + TGSlider.h + TGSpeedo.h + TGSplitFrame.h + TGSplitter.h + TGStatusBar.h + TGString.h + TGTab.h + TGTable.h + TGTableCell.h + TGTableContainer.h + TGTableHeader.h + TGTableLayout.h + TGText.h + TGTextBuffer.h + TGTextEdit.h + TGTextEditDialogs.h + TGTextEditor.h + TGTextEntry.h + TGTextView.h + TGTextViewStream.h + TGToolBar.h + TGToolTip.h + TGTripleSlider.h + TGView.h + TGWidget.h + TGWindow.h + TGXYLayout.h + TGuiBuilder.h + TRootApplication.h + TRootBrowser.h + TRootBrowserLite.h + TRootCanvas.h + TRootContextMenu.h + TRootControlBar.h + TRootDialog.h + TRootEmbeddedCanvas.h + TRootGuiFactory.h + TRootHelpDialog.h + TVirtualDragManager.h + WidgetMessageTypes.h +) + ROOT_STANDARD_LIBRARY_PACKAGE(Gui HEADERS - HelpText.h - TG3DLine.h - TGApplication.h - TGButton.h - TGButtonGroup.h - TGCanvas.h - TGClient.h - TGColorDialog.h - TGColorSelect.h - TGComboBox.h - TGCommandPlugin.h - TGDNDManager.h - TGDimension.h - TGDockableFrame.h - TGDoubleSlider.h - TGEventHandler.h - TGFSComboBox.h - TGFSContainer.h - TGFileBrowser.h - TGFileDialog.h - TGFont.h - TGFontDialog.h - TGFrame.h - TGGC.h - TGIcon.h - TGIdleHandler.h - TGImageMap.h - TGInputDialog.h - TGLabel.h - TGLayout.h - TGListBox.h - TGListTree.h - TGListView.h - TGMdi.h - TGMdiDecorFrame.h - TGMdiFrame.h - TGMdiMainFrame.h - TGMdiMenu.h - TGMenu.h - TGMimeTypes.h - TGMsgBox.h - TGNumberEntry.h - TGObject.h - TGPack.h - TGPasswdDialog.h - TGPicture.h - TGProgressBar.h - TGRedirectOutputGuard.h - TGResourcePool.h - TGScrollBar.h - TGShapedFrame.h - TGShutter.h - TGSimpleTable.h - TGSimpleTableInterface.h - TGSlider.h - TGSpeedo.h - TGSplitFrame.h - TGSplitter.h - TGStatusBar.h - TGString.h - TGTab.h - TGTable.h - TGTableCell.h - TGTableContainer.h - TGTableHeader.h - TGTableLayout.h - TGText.h - TGTextBuffer.h - TGTextEdit.h - TGTextEditDialogs.h - TGTextEditor.h - TGTextEntry.h - TGTextView.h - TGTextViewStream.h - TGToolBar.h - TGToolTip.h - TGTripleSlider.h - TGView.h - TGWidget.h - TGWindow.h - TGXYLayout.h - TGuiBuilder.h - TRootApplication.h - TRootBrowser.h - TRootBrowserLite.h - TRootCanvas.h - TRootContextMenu.h - TRootControlBar.h - TRootDialog.h - TRootEmbeddedCanvas.h - TRootGuiFactory.h - TRootHelpDialog.h - TVirtualDragManager.h - WidgetMessageTypes.h + ${GUI_HEADERS} SOURCES src/HelpText.cxx src/TG3DLine.cxx @@ -209,4 +213,16 @@ ROOT_STANDARD_LIBRARY_PACKAGE(Gui ROOTNTupleBrowse ) +set(RELATIVE_INC_HEADERS ${GUI_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(Gui +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h +) + target_include_directories(Gui PRIVATE ${CMAKE_SOURCE_DIR}/gui/ged/inc) diff --git a/gui/guibuilder/CMakeLists.txt b/gui/guibuilder/CMakeLists.txt index 063dca47863b6..7603d548561d2 100644 --- a/gui/guibuilder/CMakeLists.txt +++ b/gui/guibuilder/CMakeLists.txt @@ -8,15 +8,19 @@ # CMakeLists.txt file for building ROOT gui/guibuilder package ############################################################################ +set(GUIBLD_HEADERS + TGuiBldDragManager.h + TGuiBldEditor.h + TGuiBldGeometryFrame.h + TGuiBldHintsButton.h + TGuiBldHintsEditor.h + TGuiBldNameFrame.h + TRootGuiBuilder.h +) + ROOT_STANDARD_LIBRARY_PACKAGE(GuiBld HEADERS - TGuiBldDragManager.h - TGuiBldEditor.h - TGuiBldGeometryFrame.h - TGuiBldHintsButton.h - TGuiBldHintsEditor.h - TGuiBldNameFrame.h - TRootGuiBuilder.h + ${GUIBLD_HEADERS} SOURCES src/TGuiBldDragManager.cxx src/TGuiBldEditor.cxx @@ -31,3 +35,15 @@ ROOT_STANDARD_LIBRARY_PACKAGE(GuiBld MathCore ASImageUtils ) + +set(RELATIVE_INC_HEADERS ${GUIBLD_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(GuiBld +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h +) diff --git a/gui/guihtml/CMakeLists.txt b/gui/guihtml/CMakeLists.txt index ce5669b9b5ce2..52874308c43d2 100644 --- a/gui/guihtml/CMakeLists.txt +++ b/gui/guihtml/CMakeLists.txt @@ -8,11 +8,15 @@ # CMakeLists.txt file for building ROOT gui/guihtml package ############################################################################ +set(GUIHTML_HEADERS + TGHtml.h + TGHtmlTokens.h + TGHtmlUri.h +) + ROOT_STANDARD_LIBRARY_PACKAGE(GuiHtml HEADERS - TGHtml.h - TGHtmlTokens.h - TGHtmlUri.h + ${GUIHTML_HEADERS} SOURCES src/TGHtml.cxx src/TGHtmlDraw.cxx @@ -31,3 +35,15 @@ ROOT_STANDARD_LIBRARY_PACKAGE(GuiHtml Graf ASImageUtils ) + +set(RELATIVE_INC_HEADERS ${GUIHTML_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(GuiHtml +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h +) diff --git a/gui/qt6canvas/CMakeLists.txt b/gui/qt6canvas/CMakeLists.txt index 2c1c6e9e11e78..01b893966de50 100644 --- a/gui/qt6canvas/CMakeLists.txt +++ b/gui/qt6canvas/CMakeLists.txt @@ -20,19 +20,22 @@ if(NOT Qt6_FOUND) endif() endif() - set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) +set(QT6CANVAS_HEADERS + TQt6Application.h + TQt6Canvas.h + TQt6PadPainter.h + TQt6GedEditor.h + TQt6GuiFactory.h +) + ROOT_STANDARD_LIBRARY_PACKAGE(ROOTQt6Canvas HEADERS - TQt6Application.h - TQt6Canvas.h - TQt6PadPainter.h - TQt6GedEditor.h - TQt6GuiFactory.h + ${QT6CANVAS_HEADERS} SOURCES src/QCanvasWidget.cpp src/QPaintWidget.cpp @@ -51,4 +54,18 @@ ROOT_STANDARD_LIBRARY_PACKAGE(ROOTQt6Canvas Gpad ) -target_include_directories(ROOTQt6Canvas PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src) +set(RELATIVE_INC_HEADERS ${QT6CANVAS_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(ROOTQt6Canvas +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ src/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h + src/QCanvasWidget.h + src/QPaintWidget.h + src/QRootContextMenu.h + src/QRootMethodDialog.h +) diff --git a/gui/qt6webdisplay/CMakeLists.txt b/gui/qt6webdisplay/CMakeLists.txt index c70ac93bb61cf..ea1f62e7201ee 100644 --- a/gui/qt6webdisplay/CMakeLists.txt +++ b/gui/qt6webdisplay/CMakeLists.txt @@ -30,3 +30,14 @@ ROOT_LINKER_LIBRARY(ROOTQt6WebDisplay RHTTP ROOTWebDisplay ) + +target_sources(ROOTQt6WebDisplay +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS ./ + FILES + rooturlschemehandler.h + rootwebpage.h + rootwebview.h +) \ No newline at end of file diff --git a/gui/recorder/CMakeLists.txt b/gui/recorder/CMakeLists.txt index 951beab106187..4e86c9378ed82 100644 --- a/gui/recorder/CMakeLists.txt +++ b/gui/recorder/CMakeLists.txt @@ -8,9 +8,13 @@ # CMakeLists.txt file for building ROOT gui/recorder package ############################################################################ +set(RECORDER_HEADERS + TRecorder.h +) + ROOT_STANDARD_LIBRARY_PACKAGE(Recorder HEADERS - TRecorder.h + ${RECORDER_HEADERS} SOURCES src/TRecorder.cxx DEPENDENCIES @@ -19,3 +23,15 @@ ROOT_STANDARD_LIBRARY_PACKAGE(Recorder Gui Thread ) + +set(RELATIVE_INC_HEADERS ${RECORDER_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(Recorder +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h +) diff --git a/gui/treemap/CMakeLists.txt b/gui/treemap/CMakeLists.txt index 6f4445e8bd013..a57e923d7b9d3 100644 --- a/gui/treemap/CMakeLists.txt +++ b/gui/treemap/CMakeLists.txt @@ -9,10 +9,14 @@ # @author Patryk Tymoteusz Pilichowski CERN ############################################################################ +set(TREEMAP_HEADERS + ROOT/RTreeMapBase.hxx + ROOT/RTreeMapPainter.hxx +) + ROOT_STANDARD_LIBRARY_PACKAGE(ROOTTreeMap HEADERS - ROOT/RTreeMapBase.hxx - ROOT/RTreeMapPainter.hxx + ${TREEMAP_HEADERS} SOURCES RTreeMapBase.cxx RTreeMapPainter.cxx @@ -20,3 +24,15 @@ ROOT_STANDARD_LIBRARY_PACKAGE(ROOTTreeMap Gpad RIO ) + +set(RELATIVE_INC_HEADERS ${TREEMAP_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(ROOTTreeMap +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h +) diff --git a/gui/webdisplay/CMakeLists.txt b/gui/webdisplay/CMakeLists.txt index d7cb7eac0c0e4..b550c2e42e152 100644 --- a/gui/webdisplay/CMakeLists.txt +++ b/gui/webdisplay/CMakeLists.txt @@ -12,12 +12,16 @@ if(NOT http) message(SEND_ERROR "webgui needs the option 'http' enabled.") endif() +set(WEBDISPLAY_HEADERS + ROOT/RWebDisplayArgs.hxx + ROOT/RWebDisplayHandle.hxx + ROOT/RWebWindow.hxx + ROOT/RWebWindowsManager.hxx +) + ROOT_STANDARD_LIBRARY_PACKAGE(ROOTWebDisplay HEADERS - ROOT/RWebDisplayArgs.hxx - ROOT/RWebDisplayHandle.hxx - ROOT/RWebWindow.hxx - ROOT/RWebWindowsManager.hxx + ${WEBDISPLAY_HEADERS} SOURCES RWebDisplayArgs.cxx RWebDisplayHandle.cxx @@ -38,4 +42,17 @@ endif() if(cefweb) target_compile_definitions(ROOTWebDisplay PRIVATE -DWITH_CEFWEB) -endif() \ No newline at end of file +endif() + +set(RELATIVE_INC_HEADERS ${WEBDISPLAY_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(ROOTWebDisplay +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ src/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h + src/RWebWindowWSHandler.hxx +) diff --git a/gui/webgui6/CMakeLists.txt b/gui/webgui6/CMakeLists.txt index 405209853bce1..8db29badd05c3 100644 --- a/gui/webgui6/CMakeLists.txt +++ b/gui/webgui6/CMakeLists.txt @@ -8,15 +8,19 @@ # CMakeLists.txt file for building ROOT gui/webgui6 package ############################################################################ +set(WEBGUI_HEADERS + TWebCanvas.h + TWebControlBar.h + TWebMenuItem.h + TWebPadOptions.h + TWebPadPainter.h + TWebPainting.h + TWebSnapshot.h +) + ROOT_STANDARD_LIBRARY_PACKAGE(WebGui6 HEADERS - TWebCanvas.h - TWebControlBar.h - TWebMenuItem.h - TWebPadOptions.h - TWebPadPainter.h - TWebPainting.h - TWebSnapshot.h + ${WEBGUI_HEADERS} SOURCES src/TWebCanvas.cxx src/TWebControlBar.cxx @@ -31,3 +35,15 @@ ROOT_STANDARD_LIBRARY_PACKAGE(WebGui6 ROOTWebDisplay Thread ) + +set(RELATIVE_INC_HEADERS ${WEBGUI_HEADERS}) +list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/) +target_sources(WebGui6 +PRIVATE + FILE_SET private_header_files + TYPE HEADERS + BASE_DIRS inc/ + FILES + ${RELATIVE_INC_HEADERS} + inc/LinkDef.h +)