<commit_before>
#FILE(GLOB OTBVisu_SRCS "*.cxx" )
SET ( OTBVisu_SRCS 
        toto.cxx
)

#FILE(GLOB OTBVisu_GUI_SRCS "*.fl" )

SET ( OTBVisu_GUI_SRCS 
#        otbVectorImageViewerGUI.fl
        otbImageViewerGUI.fl
		otbImageViewerASGUI.fl
)


IF(WIN32)
  ADD_DEFINITIONS(-DWIN32)
ENDIF(WIN32)

INCLUDE_DIRECTORIES(
  ${OTB_SOURCE_DIR}/Code/Visu
  ${OTB_BINARY_DIR}/Code/Visu
)

# 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(OTBVisu ${OTBVisu_GUI_SRCS} )

ADD_LIBRARY(OTBVisu ${OTBVisu_SRCS} ${OTBVisu_FLTK_UI_SRCS})
#ADD_LIBRARY(OTBVisu ${OTBVisu_SRCS} )
INSTALL_FILES(/include/otb/Visu "(\\.h|\\.txx)$")
INSTALL_TARGETS(/lib/otb OTBVisu)

TARGET_LINK_LIBRARIES(OTBVisu OTBLearning ${FLTK_LIBRARIES} ${OPENGL_glu_LIBRARY}
                      ${OPENGL_LIBRARIES})

# The fluid-generated fltk sources have many warnings.  Disable<commit_msg>Modifications pour l'install des .h générés par fltk.<commit_after>
#FILE(GLOB OTBVisu_SRCS "*.cxx" )
SET ( OTBVisu_SRCS 
        toto.cxx
)

#FILE(GLOB OTBVisu_GUI_SRCS "*.fl" )

SET ( OTBVisu_GUI_SRCS 
#        otbVectorImageViewerGUI.fl
        otbImageViewerGUI.fl
		otbImageViewerASGUI.fl
)


IF(WIN32)
  ADD_DEFINITIONS(-DWIN32)
ENDIF(WIN32)

INCLUDE_DIRECTORIES(
  ${OTB_SOURCE_DIR}/Code/Visu
  ${OTB_BINARY_DIR}/Code/Visu
)

# 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(OTBVisu ${OTBVisu_GUI_SRCS} )

ADD_LIBRARY(OTBVisu ${OTBVisu_SRCS} ${OTBVisu_FLTK_UI_SRCS})
#ADD_LIBRARY(OTBVisu ${OTBVisu_SRCS} )
INSTALL_FILES(/include/otb/Visu "(\\.h|\\.txx)$")
INSTALL_TARGETS(/lib/otb OTBVisu)
# A terme, remplacer par une macro qui a partir des sources .fl determine les .h
INSTALL_FILES(/include/otb/Visu FILES ${OTB_BINARY_DIR}/Code/Visu/otbImageViewerGUI.h ${OTB_BINARY_DIR}/Code/Visu/otbImageViewerASGUI.h)

TARGET_LINK_LIBRARIES(OTBVisu OTBLearning ${FLTK_LIBRARIES} ${OPENGL_glu_LIBRARY}
                      ${OPENGL_LIBRARIES})

# The fluid-generated fltk sources have many warnings.  Disable
{'fraction_non_alphanumeric': 0.11132254995242626, 'fraction_numerical': 0.005708848715509039, 'mean_word_length': 4.490861618798956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4003771', 'n_tokens_mistral': 948, 'n_tokens_neox': 870, 'n_words': 159}