Commit afa9dbc2 authored by Stéphane Albert's avatar Stéphane Albert

ENH: Set up CMake skeleton for Monteverdi2 common library.

parent 1ede84d3
......@@ -63,8 +63,6 @@ Application
::OnAboutToQuit()
{
qDebug( ">DEBUG< mvd::Application::OnAboutToQuit()" );
qWarning( ">WARNING< mvd::Application::OnAboutToQuit()" );
std::cout << ">info< mvd::Application::OnAboutToQuit()" << std::endl;
}
} // end namespace 'mvd'
......@@ -66,15 +66,15 @@ MainWindow
{
}
//
// SLOTS
//
/*******************************************************************************/
/* SLOTS */
/*******************************************************************************/
void
MainWindow
::on_action_Quit_activated()
::on_action_Open_activated()
{
//qApp->quit();
qDebug( ">DEBUG< mvd::MainWindow::on_action_Open_activated()." );
}
} // end namespace 'mvd'
......@@ -63,15 +63,15 @@ public:
//
protected:
//
// SLOTS
private slots:
void on_action_Quit_activated();
//
//
private:
Ui::MainWindow* m_UI;
//
// SLOTS
private slots:
void on_action_Open_activated();
};
} // end namespace 'mvd'
......
......@@ -13,7 +13,7 @@
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget"/>
<widget class="QWidget" name="m_CentralWidget"/>
<widget class="QMenuBar" name="m_MenuBar">
<property name="geometry">
<rect>
......@@ -27,13 +27,14 @@
<property name="title">
<string>&amp;File</string>
</property>
<addaction name="action_Open"/>
<addaction name="separator"/>
<addaction name="action_Quit"/>
</widget>
<addaction name="menu_File"/>
</widget>
<widget class="QStatusBar" name="m_StatusBar"/>
<widget class="QToolBar" name="mToolBar">
<widget class="QToolBar" name="m_ToolBar">
<property name="windowTitle">
<string>toolBar</string>
</property>
......@@ -52,6 +53,14 @@
<string>Ctrl+Q</string>
</property>
</action>
<action name="action_Open">
<property name="text">
<string>&amp;Open</string>
</property>
<property name="shortcut">
<string>Ctrl+O</string>
</property>
</action>
</widget>
<resources/>
<connections/>
......
# PROJECT(Monteverdi2)
add_subdirectory(Application)
#add_subdirectory(Common)
add_subdirectory(Common)
#############################################################################
# PROJECT(Monteverdi2)
if(WIN32)
add_definitions(-DWIN32)
endif(WIN32)
#############################################################################
# Qt4 settings
find_package( Qt4 REQUIRED QtCore QtGui)
include( ${QT_USE_FILE} )
add_definitions( ${QT_DEFINITIONS} )
# Add binary dir to build paths in order to include Qt4 wrapped files.
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
# Choose Qt4 libraries.
set( QT_USE_QTCORE TRUE )
set( QT_USE_QTGUI TRUE )
#############################################################################
# Input files.
file( GLOB Monteverdi2_SOURCES "*.cxx" )
file( GLOB Monteverdi2_HEADERS "*.h" )
file( GLOB Monteverdi2_FORMS "*.ui" )
file( GLOB Monteverdi2_RESOURCES "*.qrc" )
#############################################################################
# Qt4 wrapped files.
qt4_wrap_cpp( Monteverdi2_HEADERS_MOC ${Monteverdi2_HEADERS} )
qt4_wrap_ui( Monteverdi2_FORMS_HEADERS ${Monteverdi2_FORMS} )
qt4_add_resources( Monteverdi2_RESOURCES_RCC ${Monteverdi2_RESOURCES} )
#############################################################################
add_library(Monteverdi2
${Monteverdi2_SOURCES}
${Monteverdi2_FORMS_HEADERS}
${Monteverdi2_HEADERS_MOC}
${Monteverdi2_RESOURCES_RCC}
)
#############################################################################
target_link_libraries(Monteverdi2
${QT_LIBRARIES}
)
#############################################################################
# INSTALL Monteverdi2 application.
if(NOT OTB_INSTALL_NO_LIBRARIES)
install(
TARGETS Monteverdi2
#RUNTIME DESTINATION ${Monteverdi2_INSTALL_BIN_DIR_CM24} COMPONENT Runtime
LIBRARY DESTINATION ${Monteverdi2_INSTALL_LIB_DIR_CM24} COMPONENT Runtime
#ARCHIVE DESTINATION ${Monteverdi2_INSTALL_LIB_DIR_CM24} COMPONENT Development
)
endif(NOT OTB_INSTALL_NO_LIBRARIES)
#############################################################################
/*=========================================================================
Program: Monteverdi2
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "mvdMyClass.h"
//
// System includes (sorted by alphabetic order)
//
// Qt includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
namespace mvd
{
MyClass
::MyClass()
{
}
MyClass
::~MyClass()
{
}
/*******************************************************************************/
/* SLOTS */
/*******************************************************************************/
} // end namespace 'mvd'
/*=========================================================================
Program: Monteverdi2
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __mvdMyClass_h
#define __mvdMyClass_h
//
// System includes (sorted by alphabetic order)
//
// Qt includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
//
// Class pre-declaration.
namespace
{
}
namespace mvd
{
/** \class MyClass
*
*/
class MyClass
{
//
//
public:
/** Constructor */
MyClass();
/** Destructor */
virtual ~MyClass();
//
//
protected:
//
//
private:
//
// SLOTS
};
} // end namespace 'mvd'
#endif // __mvdMyClass_h
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