Commit 3abbcf37 authored by Julien Malik's avatar Julien Malik

BUG: fix ApplicationExample compilation and tests

parent 23f6dfcc
......@@ -116,7 +116,10 @@ macro(otb_test_application)
$<TARGET_FILE_DIR:otbapp_${TESTAPPLICATION_APP}>
${TESTAPPLICATION_OPTIONS}
-testenv ${TESTAPPLICATION_TESTENVOPTIONS})
# Be sure that the ${otb-module}-all target triggers the build of commandline launcher and testdriver
add_dependencies(${otb-module}-all otbApplicationLauncherCommandLine)
add_dependencies(${otb-module}-all otbTestDriver)
endmacro()
\ No newline at end of file
if(otb-module)
# Be sure that the ${otb-module}-all target triggers the build of commandline launcher and testdriver
add_dependencies(${otb-module}-all otbApplicationLauncherCommandLine)
add_dependencies(${otb-module}-all otbTestDriver)
endif()
endmacro()
project(ApplicationExamples)
add_executable(ApplicationExample ApplicationExample.cxx)
target_link_libraries(ApplicationExample ${OTB_LIBRARIES})
otb_create_application(
NAME ApplicationExample
SOURCES ApplicationExample.cxx
LINK_LIBRARIES ${OTB_LIBRARIES})
if(BUILD_TESTING)
add_subdirectory(test)
......
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