From 1b3bc763051b60ea35fddc1b126d6dd0100a5982 Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@orfeo-toolbox.org>
Date: Thu, 5 Mar 2015 14:13:07 +0100
Subject: [PATCH] TEST: Attempt to fix ApplicationExample test (but target is
 not built for some reason)

---
 Examples/Application/ApplicationExample.cxx | 6 +++---
 Examples/Application/test/CMakeLists.txt    | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Examples/Application/ApplicationExample.cxx b/Examples/Application/ApplicationExample.cxx
index 07b5f19c38..c01c061b4c 100644
--- a/Examples/Application/ApplicationExample.cxx
+++ b/Examples/Application/ApplicationExample.cxx
@@ -56,7 +56,7 @@ namespace Wrapper
 //  Software Guide : EndLatex
 
 //  Software Guide : BeginCodeSnippet
-class ExampleApplication : public Application
+class ApplicationExample : public Application
 //  Software Guide : EndCodeSnippet
 {
 public:
@@ -66,7 +66,7 @@ public:
   // Software Guide : EndLatex
 
   //  Software Guide : BeginCodeSnippet
-  typedef ExampleApplication Self;
+  typedef ApplicationExample Self;
   typedef Application Superclass;
   typedef itk::SmartPointer<Self> Pointer;
   typedef itk::SmartPointer<const Self> ConstPointer;
@@ -260,7 +260,7 @@ private:
 // Finally \code{OTB\_APPLICATION\_EXPORT} is called.
 // Software Guide : EndLatex
 //  Software Guide :BeginCodeSnippet
-OTB_APPLICATION_EXPORT(otb::Wrapper::ExampleApplication)
+OTB_APPLICATION_EXPORT(otb::Wrapper::ApplicationExample)
 //  Software Guide :EndCodeSnippet
 
 
diff --git a/Examples/Application/test/CMakeLists.txt b/Examples/Application/test/CMakeLists.txt
index 734afa7ca6..30faf6c2d2 100644
--- a/Examples/Application/test/CMakeLists.txt
+++ b/Examples/Application/test/CMakeLists.txt
@@ -3,3 +3,5 @@ otb_test_application(NAME apTeGenerateAnApplicationExample
   APP ApplicationExample
   OPTIONS -in ${OTB_DATA_ROOT}/Examples/QB_Suburb.png
           -out ${TEMP}/apTeGenerateAnApplicationExampleOutput.png)
+
+set_tests_properties(apTeGenerateAnApplicationExample PROPERTIES DEPENDS otbapp_ApplicationExample)
-- 
GitLab