CMakeLists.txt 3.68 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( OTBMonteverdiCore_SRCS
23
  mvdAbstractWorker.cxx
24
  mvdAbstractModel.cxx
25 26
  mvdAbstractImageModel.cxx
  mvdAbstractLayerModel.cxx
27 28
  mvdBackgroundTask.cxx
  mvdCore.cxx
29 30
  mvdDataStream.cxx
  mvdFilenameInterface.cxx
31 32 33 34
  mvdHistogramModel.cxx
  mvdI18nCoreApplication.cxx
  mvdImageImporter.cxx
  mvdImagePlacenameLoader.cxx
35
  mvdImageProperties.cxx
36 37 38 39
  mvdImageSettings.cxx
  mvdImageSettingsInterface.cxx
  mvdModifiableInterface.cxx
  mvdMyClass.cxx
40
  mvdOverviewBuilder.cxx
41 42 43 44
  mvdProcessObjectObserver.cxx
  mvdProgressInterface.cxx
  mvdQuicklookModel.cxx
  mvdSerializableInterface.cxx
45
  mvdStackedLayerModel.cxx
46 47 48 49
  mvdTextStream.cxx
  mvdTypes.cxx
  mvdVectorImageModel.cxx
  mvdVectorImageSettings.cxx
50 51 52
  mvdVisibleInterface.cxx
  )

53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
set( OTBMonteverdiCore_HEADERS_MOC
  ../include/mvdAbstractImageModel.h
  ../include/mvdAbstractLayerModel.h
  ../include/mvdAbstractModel.h
  ../include/mvdAbstractWorker.h
  # ../include/mvdAlgorithm.h
  ../include/mvdBackgroundTask.h
  # ../include/mvdCore.h
  # ../include/mvdDatabaseConnection.h
  # ../include/mvdDatabaseError.h
  # ../include/mvdDatabaseModel.h
  # ../include/mvdDatabaseQueries.h
  # ../include/mvdDatasetDescriptor.h
  # ../include/mvdDatasetModel.h
  ../include/mvdHistogramModel.h
  ../include/mvdI18nCoreApplication.h
  ../include/mvdImageImporter.h
  ../include/mvdImagePlacenameLoader.h
  # ../include/mvdImageProperties.h
  # ../include/mvdMath.h
  ../include/mvdMyClass.h
  ../include/mvdOverviewBuilder.h
  ../include/mvdQuicklookModel.h
  ../include/mvdStackedLayerModel.h
  # ../include/mvdSystemError.h
  # ../include/mvdTypes.h
  ../include/mvdVectorImageModel.h
)

82 83 84 85 86
#############################################################################
if( OTBApplicationEngine_ENABLED )
  list( APPEND OTBMonteverdiCore_SRCS
    mvdApplicationsBrowser.cxx
  )
87 88 89
  list( APPEND OTBMonteverdiCore_HEADERS_MOC
    ../include/mvdApplicationsBrowser.h
  )
90 91 92
endif()

#############################################################################
93
add_to_qt4_i18n_sources( ${OTBMonteverdiCore_SRCS} )
94
add_to_qt4_i18n_headers( "../include" ${OTBMonteverdiCore_SRCS} )
95

96
#############################################################################
97
qt5_wrap_cpp( OTBMonteverdiCore_SRC_MOC ${OTBMonteverdiCore_HEADERS_MOC} )
98 99

add_library( OTBMonteverdiCore ${OTBMonteverdiCore_SRCS} ${OTBMonteverdiCore_SRC_MOC})
100

101
#############################################################################
102
target_link_libraries( OTBMonteverdiCore
103
  ${OTBApplicationEngine_LIBRARIES}
104
  ${OTBCarto_LIBRARIES}
105
  ${OTBCommon_LIBRARIES}
106 107 108 109 110 111 112 113
  ${OTBImageBase_LIBRARIES}
  ${OTBImageIO_LIBRARIES}
  ${OTBImageManipulation_LIBRARIES}
  ${OTBIOGDAL_LIBRARIES}
  ${OTBMetadata_LIBRARIES}
  ${OTBObjectList_LIBRARIES}
  ${OTBOSSIMAdapters_LIBRARIES}
  ${OTBProjection_LIBRARIES}
114
  ${OTBQt_LIBRARIES}
115 116
  ${OTBStatistics_LIBRARIES}
  ${OTBTransform_LIBRARIES}
117 118
  )

119
#############################################################################
120
otb_module_target( OTBMonteverdiCore )