Commit 30b7a4a0 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

TEST: init applications toolBox test

parent 4ac9f86e
ADD_SUBDIRECTORY(Application)
ADD_SUBDIRECTORY(Common)
set(BASELINE ${OTB_DATA_ROOT}/Baseline/OTB/Images)
set(BASELINE_FILES ${OTB_DATA_ROOT}/Baseline/OTB/Files)
set(INPUTDATA ${OTB_DATA_ROOT}/Input)
set(TEMP ${Monteverdi_BINARY_DIR}/Testing/Temporary)
# Large Input
if(OTB_DATA_USE_LARGEINPUT)
set(LARGEINPUT ${OTB_DATA_LARGEINPUT_ROOT} )
endif(OTB_DATA_USE_LARGEINPUT)
set(Common_TESTS ${CXX_TEST_PATH}/otbCommonTests)
include_directories(
${Monteverdi2_BINARY_DIR}
${Monteverdi2_SOURCE_DIR}/Code/Common
${Monteverdi2_SOURCE_DIR}/Code/Common
${Monteverdi2_BINARY_DIR}/Code/Common
)
#-------------- Monteverdi Common Tests ---------------------------------
add_test(apTvMonteverdi2ApplicationsToolBox ${Common_TESTS} otbApplicationsToolBoxTest)
set(Common_SRCS
otbApplicationsToolBoxTest.cxx
)
add_executable(otbCommonTests otbCommonTests.cxx ${Common_SRCS})
target_link_libraries(otbCommonTests Monteverdi2_Common OTBTesting)
/*=========================================================================
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.
=========================================================================*/
//
// Configuration include.
//// Included at first position before any other ones.
#include "ConfigureMonteverdi2.h"
//
// Qt includes (sorted by alphabetic order)
//// Must be included before system/custom includes.
//
// System includes (sorted by alphabetic order)
// Monteverdi includes (sorted by alphabetic order)
#include "mvdApplicationsToolBox.h"
int otbApplicationsToolBoxTest(int argc, char* argv[])
{
QApplication app(argc, argv);
mvd::ApplicationsToolBox applToolBox;
applToolBox.show();
return app.exec();
}
/*=========================================================================
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 otbCommonTest 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(otbApplicationsToolBoxTest);
}
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