Skip to content
Snippets Groups Projects
Commit b79f7d3f authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

nomsg

parent 94865614
No related branches found
No related tags found
No related merge requests found
SET(FltkImageViewer_SRCS
fltkBox3D.cxx
fltkCone3D.cxx
fltkClippingPlane3DDrawer.cxx
fltkCylinder3D.cxx
fltkFrustum3D.cxx
fltkGlWindow.cxx
fltkGlWindowInteractive.cxx
fltkGlWindowInteractiveFlat.cxx
fltkImage2DViewerWindow.cxx
fltkRGBImage2DViewerWindow.cxx
fltkLightButton.cxx
fltkProgressBar.cxx
fltkShape3D.cxx
fltkSphere3D.cxx
fltkWindowInteractive.cxx
fltkTimeProbeGUI.cxx
fltkTimeProbesCollector.cxx
fltkUtils.cxx
)
SET(FltkImageViewer_GUI_SRCS
fltkClippingPlane3DDrawerGUI.fl
fltkDisplayGlWindowGUI.fl
fltkDisplayGlWindowFlatGUI.fl
fltkFrustumFunctionControlGUI.fl
fltkImageViewerGUI.fl
fltkImage2DViewerGUI.fl
fltkRGBImage2DViewerGUI.fl
fltkRegularStepGradientDescentGUI.fl
fltkSlice2DDrawerGUI.fl
fltkSlice3DDrawerGUI.fl
fltkSphereFunctionControlGUI.fl
fltkTimeProbesCollectorGUI.fl
)
IF(WIN32)
ADD_DEFINITIONS(-DWIN32)
ENDIF(WIN32)
INCLUDE_DIRECTORIES(
${OTB_SOURCE_DIR}/Utils/FltkImageViewer
${OTB_BINARY_DIR}/Utils/FltkImageViewer
)
# Take the list of GUI files, generate .cxx and .h from them and add
# them to the build process of the target
FLTK_WRAP_UI(ITKFltkImageViewer ${FltkImageViewer_GUI_SRCS} )
ADD_LIBRARY(ITKFltkImageViewer ${FltkImageViewer_SRCS} ${ITKFltkImageViewer_FLTK_UI_SRCS})
INSTALL_TARGETS(/lib ITKFltkImageViewer)
TARGET_LINK_LIBRARIES(ITKFltkImageViewer ${FLTK_LIBRARIES} ${OPENGL_glu_LIBRARY}
${OPENGL_LIBRARIES})
# The fluid-generated fltk sources have many warnings. Disable
# warnings for the generated files on some compilers.
IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)
IF(CMAKE_COMPILER_IS_GNUCXX)
FOREACH(f ${FltkImageViewer_GUI_SRCS})
STRING(REGEX REPLACE "\\.fl$" ".cxx" SRC "${f}")
SET(SRC ${OTB_BINARY_DIR}/Utils/FltkImageViewer/${SRC})
SET_SOURCE_FILES_PROPERTIES(${SRC} PROPERTIES COMPILE_FLAGS -w)
ENDFOREACH(f)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.6)
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