CMakeLists.txt 6.54 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#
# Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
#     https://www.orfeo-toolbox.org/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

21
#############################################################################
22
set( OTBMonteverdiGUI_SRCS
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
  mvdAboutDialog.cxx
  mvdAbstractDragAndDropEventFilter.cxx
  mvdAbstractModelController.cxx
  mvdColorBandDynamicsWidget.cxx
  mvdColorDynamicsController.cxx
  mvdColorDynamicsWidget.cxx
  mvdColorSetupController.cxx
  mvdColorSetupWidget.cxx
  mvdDoubleValidator.cxx
  mvdDropLineEdit.cxx
  mvdFilenameDragAndDropEventFilter.cxx
  mvdGui.cxx
  mvdHistogramController.cxx
  mvdHistogramPlotPicker.cxx
  mvdHistogramWidget.cxx
  mvdI18nApplication.cxx
  mvdI18nMainWindow.cxx
  mvdImageViewRenderer.cxx
  mvdImageViewManipulator.cxx
  mvdImageViewWidget.cxx
  mvdImportImagesDialog.cxx
  mvdImportSubDatasetDialog.cxx
  mvdKeymapDialog.cxx
  mvdLayerStackController.cxx
  mvdLayerStackItemModel.cxx
  mvdLayerStackWidget.cxx
  mvdMainWindowTitleLoader.cxx
  mvdMultiResolutionPyramidWidget.cxx
51
  #mvdMyWidget.cxx
52
  mvdPixelDescriptionWidget.cxx
53
  mvdProjectionBarWidget.cxx
54 55 56
  mvdQuicklookViewManipulator.cxx
  mvdQuicklookViewRenderer.cxx
  mvdSearchableTreeWidget.cxx
57 58 59 60 61 62 63 64
  mvdShaderWidget.cxx
  mvdStatusBarWidget.cxx
  mvdTaskProgressDialog.cxx
  mvdTreeWidget.cxx
  mvdTreeWidgetItem.cxx
  mvdTreeWidgetItemDragAndDropEventFilter.cxx
 )

65 66
#############################################################################
set( OTBMonteverdiGUI_HEADERS_MOC
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
  ../include/mvdAboutDialog.h
  ../include/mvdAbstractDragAndDropEventFilter.h
  ../include/mvdAbstractImageViewManipulator.h
  ../include/mvdAbstractImageViewRenderer.h
  ../include/mvdAbstractModelController.h
  ../include/mvdColorBandDynamicsWidget.h
  ../include/mvdColorDynamicsController.h
  ../include/mvdColorDynamicsWidget.h
  ../include/mvdColorSetupController.h
  ../include/mvdColorSetupWidget.h
  #../include/mvdDatabaseBrowserController.h
  #../include/mvdDatabaseBrowserWidget.h
  #../include/mvdDatabaseBrowserWidgetTest.h
  #../include/mvdDatabaseTreeWidget.h
  #../include/mvdDatasetCreationProgressDialog.h
  #../include/mvdDatasetDragAndDropEventFilter.h
  #../include/mvdDatasetPropertiesController.h
  #../include/mvdDatasetPropertiesWidget.h
  ../include/mvdDoubleValidator.h
  ../include/mvdDropLineEdit.h
  ../include/mvdFilenameDragAndDropEventFilter.h
88
  #mvdGui.h
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
  ../include/mvdHistogramController.h
  ../include/mvdHistogramPlotPicker.h
  ../include/mvdHistogramWidget.h
  ../include/mvdI18nApplication.h
  ../include/mvdI18nMainWindow.h
  ../include/mvdImageViewManipulator.h
  ../include/mvdImageViewRenderer.h
  ../include/mvdImageViewWidget.h
  ../include/mvdImportImagesDialog.h
  ../include/mvdImportSubDatasetDialog.h
  ../include/mvdKeymapDialog.h
  ../include/mvdLayerStackController.h
  ../include/mvdLayerStackItemModel.h
  ../include/mvdLayerStackWidget.h
  ../include/mvdMainWindowTitleLoader.h
  ../include/mvdMultiResolutionPyramidWidget.h
105
  #mvdMyWidget.h
106
  ../include/mvdPixelDescriptionWidget.h
107
  ../include/mvdProjectionBarWidget.h
108 109 110 111 112 113
  ../include/mvdQuicklookViewManipulator.h
  ../include/mvdQuicklookViewRenderer.h
  ../include/mvdSearchableTreeWidget.h
  ../include/mvdStatusBarWidget.h
  ../include/mvdTaskProgressDialog.h
  ../include/mvdTreeWidget.h
114
  #mvdTreeWidgetItem.h
115 116
  ../include/mvdTreeWidgetItemDragAndDropEventFilter.h
  ../include/mvdShaderWidget.h
117 118 119 120 121 122 123 124
)

#############################################################################
set( OTBMonteverdiGUI_FORMS
  mvdAboutDialog.ui
  mvdColorBandDynamicsWidget.ui
  mvdColorDynamicsWidget.ui
  mvdColorSetupWidget.ui
125 126 127 128
  #mvdDatabaseBrowserWidget.ui
  #mvdDatabaseBrowserWidgetTest.ui
  #mvdDatasetCreationProgressDialog.ui
  #mvdDatasetPropertiesWidget.ui
129 130 131 132 133 134 135 136
  mvdHistogramWidget.ui
  mvdImportImagesDialog.ui
  mvdImportSubDatasetDialog.ui
  mvdKeymapDialog.ui
  mvdLayerStackWidget.ui
  mvdMultiResolutionPyramidWidget.ui
  #mvdMyWidget.ui
  mvdPixelDescriptionWidget.ui
137
  mvdProjectionBarWidget.ui
138 139 140 141 142 143 144 145
  mvdSearchableTreeWidget.ui
  mvdShaderWidget.ui
  mvdStatusBarWidget.ui
  mvdVideoColorToolBox.ui
)

#############################################################################
set( OTBMonteverdiGUI_RESOURCES
146
  mvdIcons.qrc
147 148
)

149
#############################################################################
150
if( OTBQtWidget_ENABLED )
151 152 153 154
  list( APPEND OTBMonteverdiGUI_SRCS
    mvdApplicationLauncher.cxx
    mvdApplicationsToolBox.cxx
    mvdApplicationsToolBoxController.cxx
155
    mvdOTBApplicationsModel.cxx
156
    mvdQtWidgetView.cxx
157 158 159
  )

  list( APPEND OTBMonteverdiGUI_HEADERS_MOC
160
    ../include/mvdApplicationLauncher.h
161
    ../include/mvdApplicationsToolBox.h
162 163 164
    ../include/mvdApplicationsToolBoxController.h
    ../include/mvdOTBApplicationsModel.h
    ../include/mvdQtWidgetView.h
165 166 167 168 169 170 171 172 173 174 175
    )

  list( APPEND OTBMonteverdiGUI_FORMS
    mvdApplicationsToolBox.ui
    )

  list( APPEND OTBMonteverdiGUI_RESOURCES
    # mvdApplicationsToolBox.qrc
    )
endif()

176
#############################################################################
177 178 179
qt5_wrap_cpp( OTBMonteverdiGUI_SRC_MOC ${OTBMonteverdiGUI_HEADERS_MOC} )
qt5_wrap_ui( OTBMonteverdiGUI_FORMS_HEADERS ${OTBMonteverdiGUI_FORMS} )
qt5_add_resources( OTBMonteverdiGUI_RESOURCES_RCC ${OTBMonteverdiGUI_RESOURCES} )
180

181
#############################################################################
182 183 184
add_to_qt_i18n_sources( ${OTBMonteverdiGUI_SRCS} )
add_to_qt_i18n_headers( "../include" ${OTBMonteverdiGUI_SRCS} )
add_to_qt_i18n_forms( ${OTBMonteverdiGUI_FORMS} )
185

186
#############################################################################
187 188 189 190 191 192
add_library( OTBMonteverdiGUI
  ${OTBMonteverdiGUI_SRCS}
  ${OTBMonteverdiGUI_FORMS_HEADERS}
  ${OTBMonteverdiGUI_SRC_MOC}
  ${OTBMonteverdiGUI_RESOURCES_RCC}
)
193

194
#############################################################################
195
target_link_libraries( OTBMonteverdiGUI
196
  ${OTBCommon_LIBRARIES}
197 198 199
  ${OTBIce_LIBRARIES}
  ${OTBIOGDAL_LIBRARIES}
  ${OTBMonteverdiCore_LIBRARIES}
200
  ${OTBQtWidget_LIBRARIES}
201
  ${OTBQwt_LIBRARIES}
202 203
  )

204
#############################################################################
205
otb_module_target( OTBMonteverdiGUI )