Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
ec2d0fd3
Commit
ec2d0fd3
authored
Nov 13, 2012
by
Stéphane Albert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Set up CMake skeleton files and added main skeleton.
parent
b2ddc99a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
124 additions
and
3 deletions
+124
-3
.hgignore
.hgignore
+11
-0
Code/Application/CMakeLists.txt
Code/Application/CMakeLists.txt
+56
-0
Code/Application/main.cxx
Code/Application/main.cxx
+53
-0
Code/CMakeLists.txt
Code/CMakeLists.txt
+4
-3
No files found.
.hgignore
0 → 100644
View file @
ec2d0fd3
syntax: glob
*~
.*.swp
*.orig
*.pyc
.\#*
\#*\#
tags
*vim*
*.template
Code/Application/CMakeLists.txt
0 → 100644
View file @
ec2d0fd3
#############################################################################
# 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
)
#############################################################################
Code/Application/main.cxx
0 → 100644
View file @
ec2d0fd3
/*=========================================================================
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.
//
Code/CMakeLists.txt
View file @
ec2d0fd3
#ADD_SUBDIRECTORY(Modules)
#ADD_SUBDIRECTORY(Common)
#ADD_SUBDIRECTORY(Application)
# PROJECT(Monteverdi2)
add_subdirectory
(
Application
)
#add_subdirectory(Common)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment