Skip to content
Snippets Groups Projects
Commit 69e4f11b authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

debut tests

parent e6e61b8c
Branches
Tags
No related merge requests found
PROJECT(TutorialsExamples) PROJECT(TutorialsExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$") INCLUDE_REGULAR_EXPRESSION("^.*$")
SET(TUTORIALS_EXAMPLES ${CXX_TEST_PATH}/otbTutorialsExamplesTests)
ADD_EXECUTABLE(HelloWorldOTB HelloWorldOTB.cxx ) ADD_EXECUTABLE(HelloWorldOTB HelloWorldOTB.cxx )
TARGET_LINK_LIBRARIES(HelloWorldOTB OTBCommon OTBIO) TARGET_LINK_LIBRARIES(HelloWorldOTB OTBCommon OTBIO)
...@@ -20,4 +22,25 @@ ADD_EXECUTABLE(SimpleViewer SimpleViewer.cxx ) ...@@ -20,4 +22,25 @@ ADD_EXECUTABLE(SimpleViewer SimpleViewer.cxx )
TARGET_LINK_LIBRARIES(SimpleViewer OTBCommon OTBIO OTBGui OTBVisu) TARGET_LINK_LIBRARIES(SimpleViewer OTBCommon OTBIO OTBGui OTBVisu)
ADD_EXECUTABLE(OrthoFusion OrthoFusion.cxx ) ADD_EXECUTABLE(OrthoFusion OrthoFusion.cxx )
TARGET_LINK_LIBRARIES(OrthoFusion OTBProjections OTBCommon OTBIO) TARGET_LINK_LIBRARIES(OrthoFusion OTBFusion OTBProjections OTBCommon OTBIO)
\ No newline at end of file
IF( NOT OTB_DISABLE_CXX_TESTING AND NOT OTB_DISABLE_CXX_EXAMPLES_TESTING )
SET(BASELINE ${OTB_DATA_ROOT}/Baseline/Examples/Tutorials)
SET(INPUTDATA ${OTB_SOURCE_DIR}/Examples/Data)
SET(TEMP ${OTB_BINARY_DIR}/Examples/Tutorials/Testing/Temporary)
SET(EXE_TESTS ${CXX_TEST_PATH}/otbTutorialsExamplesTests)
SET(TOL 0.0)
INCLUDE_DIRECTORIES("${OTBTesting_BINARY_DIR}")
ADD_EXECUTABLE(otbTutorialsExamplesTests otbTutorialsExamplesTests.cxx)
TARGET_LINK_LIBRARIES(otbTUtorialsExamplesTests gdal ITKIO ITKAlgorithms ITKStatistics ITKNumerics ITKCommon OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale OTBFusion)
ENDIF( NOT OTB_DISABLE_CXX_TESTING AND NOT OTB_DISABLE_CXX_EXAMPLES_TESTING )
/*=========================================================================
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.
=========================================================================*/
// this file defines the otbMultiScaleTest for the test driver
// and all it expects is that you have a function called RegisterTests
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#include <iostream>
#include "otbTestMain.h"
void RegisterTests()
{
REGISTER_TEST(HelloWorldOTBTest);
}
#undef main
#define main HelloWorldOTBTest
#include "HelloWorldOTBTest.cxx"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment