Commit faf8039d authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

ENH: rename application, add test and avoid linking the target with itself

parent a59ec638
OTB_CREATE_APPLICATION(NAME otbEmptyApp
OTB_CREATE_APPLICATION(NAME EmptyApp
SOURCES otbEmptyApp.cxx
LINK_LIBRARIES ${${otb-module}_LIBRARIES}
)
......
#include "otbWrapperApplication.h"
#include "otbWrapperApplicationFactory.h"
class otbEmptyApp : public otb::Wrapper::Application
class EmptyApp : public otb::Wrapper::Application
{
public:
typedef otbEmptyApp Self;
typedef EmptyApp Self;
typedef itk::SmartPointer<Self> Pointer;
itkNewMacro(Self);
......@@ -12,7 +12,7 @@ public:
private:
void DoInit()
{
SetName("otbEmptyApp");
SetName("EmptyApp");
SetDescription("Empty application.");
}
......@@ -26,4 +26,4 @@ private:
}
};
OTB_APPLICATION_EXPORT(otbEmptyApp)
OTB_APPLICATION_EXPORT(EmptyApp)
......@@ -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})
......@@ -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
)
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