Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SandBoxModule
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guillaume Pasero
SandBoxModule
Commits
faf8039d
Commit
faf8039d
authored
9 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Patches
Plain Diff
ENH: rename application, add test and avoid linking the target with itself
parent
a59ec638
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
app/CMakeLists.txt
+1
-1
1 addition, 1 deletion
app/CMakeLists.txt
app/otbEmptyApp.cxx
+4
-4
4 additions, 4 deletions
app/otbEmptyApp.cxx
src/CMakeLists.txt
+1
-1
1 addition, 1 deletion
src/CMakeLists.txt
test/CMakeLists.txt
+5
-0
5 additions, 0 deletions
test/CMakeLists.txt
with
11 additions
and
6 deletions
app/CMakeLists.txt
+
1
−
1
View file @
faf8039d
OTB_CREATE_APPLICATION
(
NAME
otb
EmptyApp
OTB_CREATE_APPLICATION
(
NAME EmptyApp
SOURCES otbEmptyApp.cxx
LINK_LIBRARIES
${${
otb-module
}
_LIBRARIES
}
)
...
...
This diff is collapsed.
Click to expand it.
app/otbEmptyApp.cxx
+
4
−
4
View file @
faf8039d
#include
"otbWrapperApplication.h"
#include
"otbWrapperApplicationFactory.h"
class
otb
EmptyApp
:
public
otb
::
Wrapper
::
Application
class
EmptyApp
:
public
otb
::
Wrapper
::
Application
{
public:
typedef
otb
EmptyApp
Self
;
typedef
EmptyApp
Self
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
itkNewMacro
(
Self
);
...
...
@@ -12,7 +12,7 @@ public:
private:
void
DoInit
()
{
SetName
(
"
otb
EmptyApp"
);
SetName
(
"EmptyApp"
);
SetDescription
(
"Empty application."
);
}
...
...
@@ -26,4 +26,4 @@ private:
}
};
OTB_APPLICATION_EXPORT
(
otb
EmptyApp
)
OTB_APPLICATION_EXPORT
(
EmptyApp
)
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
1
−
1
View file @
faf8039d
...
...
@@ -6,5 +6,5 @@ otbSomeFile.cxx
)
add_library
(
${
otb-module
}
${${
otb-module
}
_SRC
}
)
target_link_libraries
(
${
otb-module
}
${
${
otb-module
}
_LIBRARIES
}
)
target_link_libraries
(
${
otb-module
}
${
OTBCommon
_LIBRARIES
}
)
otb_module_target
(
${
otb-module
}
)
This diff is collapsed.
Click to expand it.
test/CMakeLists.txt
+
5
−
0
View file @
faf8039d
...
...
@@ -14,3 +14,8 @@ otb_module_target_label(otbEmptyTestDriver)
otb_add_test
(
NAME otbDeleteMeEmptyTest
COMMAND otbEmptyTestDriver otbEmptyTest
"argument1"
"..."
)
#test application
otb_test_application
(
NAME otbEmptyAppTest
APP EmptyApp
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment