Skip to content
Snippets Groups Projects
Commit e65545c7 authored by Julien Malik's avatar Julien Malik
Browse files

COMP: fix compilation of otbViewerTests

parent d5fd5ecb
No related branches found
No related tags found
No related merge requests found
IF( NOT OTB-Applications_DISABLE_CXX_TESTING )
SET(INPUTDATA ${OTB_DATA_ROOT}/Input)
#Tolerance sur diff pixel image
......@@ -33,6 +31,13 @@ ADD_TEST(ivmTvViewTest_JPEG2000Id ${Viewer_TESTS}
${INPUTDATA}/bretagne.j2k:3
)
# We need to regenerate the UI sources, even though FLTK_WRAP_UI is called
# in Code/Visualization/Viewer/CMakeLists.txt
# This is because the file is generated at build time,
# so we cannot include it in Viewer_SRCS
FLTK_WRAP_UI(otbViewerTests
../../../../Code/Visualization/Viewer/View/otbViewerViewGroup.fl )
SET(Viewer_SRCS
otbViewerTests.cxx
otbViewerModelTest.cxx
......@@ -40,7 +45,7 @@ otbViewerViewTest.cxx
${OTB_SOURCE_DIR}/Code/Visualization/Viewer/Model/otbViewerModel.cxx
${OTB_SOURCE_DIR}/Code/Visualization/Viewer/Controller/otbViewerController.cxx
${OTB_SOURCE_DIR}/Code/Visualization/Viewer/View/otbViewerViewGUI.cxx
${OTB_BINARY_DIR}/Code/Visualization/Viewer/otbViewerViewGroup.cxx
${otbViewerTests_FLTK_UI_SRCS}
)
INCLUDE_DIRECTORIES(
......@@ -50,7 +55,6 @@ INCLUDE_DIRECTORIES(
${OTB_BINARY_DIR}/Code/Visualization/Viewer
)
OTB_ADD_EXECUTABLE(otbViewerTests "${Viewer_SRCS}" "OTBVisualization;OTBTesting")
ENDIF( NOT OTB-Applications_DISABLE_CXX_TESTING )
ADD_EXECUTABLE(otbViewerTests ${Viewer_SRCS})
TARGET_LINK_LIBRARIES(otbViewerTests OTBVisualization OTBTesting)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment