Commit 25cfbc70 authored by Guillaume Pasero's avatar Guillaume Pasero

REFAC: CMakeLists refac

parent d342eb62
project( OTBMapla )
configure_file(src/maplaWin32.rc.in maplaWin32.rc)
otb_module_impl()
set( OTBMapla_SRCS
main.cxx
maplaApplication.cxx
maplaMainWindow.cxx
)
add_executable( mapla ${OTBMapla_SRCS} )
target_link_libraries( mapla
${OTBMonteverdiCore_LIBRARIES}
${OTBMonteverdiGUI_LIBRARIES}
)
otb_module_target( mapla )
project( OTBMonteverdi )
configure_file(src/mvdWin32.rc.in mvdWin32.rc)
otb_module_impl()
set( Monteverdi_SRCS
set( OTBMonteverdi_SRCS
main.cxx
mvdApplication.cxx
mvdMainWindow.cxx
mvdPreferencesDialog.cxx
)
add_library( Monteverdi ${Monteverdi_SRCS} )
add_executable( monteverdi ${OTBMonteverdi_SRCS} )
target_link_libraries( Monteverdi
${Monteverdi_LIBRARIES}
${MonteverdiCore_LIBRARIES}
${MonteverdiGui_LIBRARIES}
target_link_libraries( monteverdi
${OTBMonteverdiCore_LIBRARIES}
${OTBMonteverdiGUI_LIBRARIES}
)
add_executable( monteverdi main.cxx )
target_link_libraries( monteverdi Monteverdi )
otb_module_target( Monteverdi )
set( MonteverdiCore_SRCS
set( OTBMonteverdiCore_SRCS
mvdAbstractWorker.cxx
mvdApplicationsBrowser.cxx
mvdAbstractModel.cxx
......@@ -30,10 +30,22 @@ set( MonteverdiCore_SRCS
mvdVisibleInterface.cxx
)
add_library( MonteverdiCore ${MonteverdiCore_SRCS} )
add_library( OTBMonteverdiCore ${OTBMonteverdiCore_SRCS} )
target_link_libraries( MonteverdiCore
target_link_libraries( OTBMonteverdiCore
${OTBCarto_LIBRARIES}
${OTBCommon_LIBRARIES}
${OTBImageBase_LIBRARIES}
${OTBImageIO_LIBRARIES}
${OTBImageManipulation_LIBRARIES}
${OTBIOGDAL_LIBRARIES}
${OTBMetadata_LIBRARIES}
${OTBObjectList_LIBRARIES}
${OTBOSSIMAdapters_LIBRARIES}
${OTBProjection_LIBRARIES}
${OTBQt4_LIBRARIES}
${OTBStatistics_LIBRARIES}
${OTBTransform_LIBRARIES}
)
otb_module_target( MonteverdiCore )
otb_module_target( OTBMonteverdiCore )
set( MonteverdiGui_SRCS
set( OTBMonteverdiGUI_SRCS
mvdAboutDialog.cxx
mvdAbstractDragAndDropEventFilter.cxx
mvdAbstractModelController.cxx
......@@ -43,10 +43,14 @@ set( MonteverdiGui_SRCS
mvdTreeWidgetItemDragAndDropEventFilter.cxx
)
add_library( MonteverdiGui ${MonteverdiGui_SRCS} )
add_library( OTBMonteverdiGUI ${OTBMonteverdiGUI_SRCS} )
target_link_libraries( MonteverdiGui
target_link_libraries( OTBMonteverdiGUI
${OTBCommon_LIBRARIES}
${OTBIce_LIBRARIES}
${OTBIOGDAL_LIBRARIES}
${OTBMonteverdiCore_LIBRARIES}
${OTBQwt_LIBRARIES}
)
otb_module_target( MonteverdiGui )
otb_module_target( OTBMonteverdiGUI )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment