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

ENH: Set up CMake skeleton files and added main skeleton.

parent b2ddc99a
syntax: glob
*~
.*.swp
*.orig
*.pyc
.\#*
\#*\#
tags
*vim*
*.template
#############################################################################
# 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_executable(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: ORFEO Toolbox
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 "ConfigureMonteverdi.h"
//
// System includes (sorted by alphabetic order)
#include <cstdlib>
//
// Qt includes (sorted by alphabetic order)
#include <QApplication>
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
//
// Main functions definitions.
//
//
// MAIN
//
int
main( int argc, char* argv[] )
{
QApplication application( argc, argv );
return application.exec();
}
//
// Main function implementation.
//
#ADD_SUBDIRECTORY(Modules)
#ADD_SUBDIRECTORY(Common)
#ADD_SUBDIRECTORY(Application)
# PROJECT(Monteverdi2)
add_subdirectory(Application)
#add_subdirectory(Common)
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