<commit_before>#############################################################################
# Input files.
set( Monteverdi2_Catalogue_SOURCES
       mvdApplication.cxx
       mvdMainWindow.cxx
       mvdPreferencesDialog.cxx
)

# Headers for classes with Q_OBJECT macro (needs to go to Qt moc)
set( Monteverdi2_Catalogue_HEADERS_MOC
       mvdApplication.h
       mvdMainWindow.h
       mvdPreferencesDialog.h
)

# Qt designer UI files
set( Monteverdi2_Catalogue_FORMS
       mvdMainWindow.ui
       mvdPreferencesDialog.ui
)

# Qt resources included in executable
set( Monteverdi2_Catalogue_RESOURCES
       mvdMainWindow.qrc
)

# General include directories.
include_directories(
  ${ICE_INCLUDE_DIRS}
  ${QWT_INCLUDE_DIRS}
  #
  ${Monteverdi2_BINARY_DIR}
  #
  ${Monteverdi2_SOURCE_DIR}/Code/Common
  #
  ${Monteverdi2_SOURCE_DIR}/Code/Application/Monteverdi2
  ${Monteverdi2_BINARY_DIR}/Code/Application/Monteverdi2
  #
  ${Monteverdi2_SOURCE_DIR}/Data/Icons
)

#############################################################################
# Qt4 wrapped files.
qt4_wrap_cpp( Monteverdi2_Catalogue_SRC_MOC ${Monteverdi2_Catalogue_HEADERS_MOC} )
qt4_wrap_ui( Monteverdi2_Catalogue_FORMS_HEADERS ${Monteverdi2_Catalogue_FORMS}  )
qt4_add_resources( Monteverdi2_Catalogue_RESOURCES_RCC ${Monteverdi2_Catalogue_RESOURCES} )

#############################################################################
# Sources files to translate.
add_to_qt4_i18n_sources(
  main.cxx
  ${Monteverdi2_Catalogue_SOURCES}
  ${Monteverdi2_Catalogue_HEADERS_MOC}
  ${Monteverdi2_Catalogue_FORMS}
)

if (WIN32)
    # Windows Resource file need to have the full path to icon
    # if the .ico is not in the current dir
    set( Monteverdi2_Catalogue_WIN32_ICON ${Monteverdi2_SOURCE_DIR}/Data/Icons/monteverdi2.ico)
    configure_file(
      ${CMAKE_CURRENT_SOURCE_DIR}/mvdWin32.rc.in
      ${CMAKE_CURRENT_BINARY_DIR}/mvdWin32.rc
      @ONLY
    )

    # The RC file to be added to source list
    set( Monteverdi2_Catalogue_WIN32_RC_FILE ${CMAKE_CURRENT_BINARY_DIR}/mvdWin32.rc )
endif()


#############################################################################
# Monteverdi2_Catalogue library
# STATIC so that the monteverdi2 executable does not depend on another shared lib
# The library is also used in tests, waiting for a better test strategy
# The library is not installed

add_library( Monteverdi2_Catalogue
  STATIC
  ${Monteverdi2_Catalogue_SOURCES}
  ${Monteverdi2_Catalogue_FORMS_HEADERS}
  ${Monteverdi2_Catalogue_SRC_MOC}
)
target_link_libraries( Monteverdi2_Catalogue
  Monteverdi2_Gui
)

if (OTB_WRAP_QT)
target_link_libraries( Monteverdi2_Catalogue
  Monteverdi2_ApplicationsWrapper
)
endif()

#############################################################################<commit_msg>COMP: added proper CMAKE_RC_COMPILE_OBJECT options for MinGW<commit_after>#############################################################################
# Input files.
set( Monteverdi2_Catalogue_SOURCES
       mvdApplication.cxx
       mvdMainWindow.cxx
       mvdPreferencesDialog.cxx
)

# Headers for classes with Q_OBJECT macro (needs to go to Qt moc)
set( Monteverdi2_Catalogue_HEADERS_MOC
       mvdApplication.h
       mvdMainWindow.h
       mvdPreferencesDialog.h
)

# Qt designer UI files
set( Monteverdi2_Catalogue_FORMS
       mvdMainWindow.ui
       mvdPreferencesDialog.ui
)

# Qt resources included in executable
set( Monteverdi2_Catalogue_RESOURCES
       mvdMainWindow.qrc
)

# General include directories.
include_directories(
  ${ICE_INCLUDE_DIRS}
  ${QWT_INCLUDE_DIRS}
  #
  ${Monteverdi2_BINARY_DIR}
  #
  ${Monteverdi2_SOURCE_DIR}/Code/Common
  #
  ${Monteverdi2_SOURCE_DIR}/Code/Application/Monteverdi2
  ${Monteverdi2_BINARY_DIR}/Code/Application/Monteverdi2
  #
  ${Monteverdi2_SOURCE_DIR}/Data/Icons
)

#############################################################################
# Qt4 wrapped files.
qt4_wrap_cpp( Monteverdi2_Catalogue_SRC_MOC ${Monteverdi2_Catalogue_HEADERS_MOC} )
qt4_wrap_ui( Monteverdi2_Catalogue_FORMS_HEADERS ${Monteverdi2_Catalogue_FORMS}  )
qt4_add_resources( Monteverdi2_Catalogue_RESOURCES_RCC ${Monteverdi2_Catalogue_RESOURCES} )

#############################################################################
# Sources files to translate.
add_to_qt4_i18n_sources(
  main.cxx
  ${Monteverdi2_Catalogue_SOURCES}
  ${Monteverdi2_Catalogue_HEADERS_MOC}
  ${Monteverdi2_Catalogue_FORMS}
)

if (WIN32)
    # Windows Resource file need to have the full path to icon
    # if the .ico is not in the current dir
    set( Monteverdi2_Catalogue_WIN32_ICON ${Monteverdi2_SOURCE_DIR}/Data/Icons/monteverdi2.ico)
    configure_file(
      ${CMAKE_CURRENT_SOURCE_DIR}/mvdWin32.rc.in
      ${CMAKE_CURRENT_BINARY_DIR}/mvdWin32.rc
      @ONLY
    )

  if (MINGW)
    set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
  endif()
 
    # The RC file to be added to source list
    set( Monteverdi2_Catalogue_WIN32_RC_FILE ${CMAKE_CURRENT_BINARY_DIR}/mvdWin32.rc )
endif()


#############################################################################
# Monteverdi2_Catalogue library
# STATIC so that the monteverdi2 executable does not depend on another shared lib
# The library is also used in tests, waiting for a better test strategy
# The library is not installed

add_library( Monteverdi2_Catalogue
  STATIC
  ${Monteverdi2_Catalogue_SOURCES}
  ${Monteverdi2_Catalogue_FORMS_HEADERS}
  ${Monteverdi2_Catalogue_SRC_MOC}
)
target_link_libraries( Monteverdi2_Catalogue
  Monteverdi2_Gui
)

if (OTB_WRAP_QT)
target_link_libraries( Monteverdi2_Catalogue
  Monteverdi2_ApplicationsWrapper
)
endif()

#############################################################################
{'fraction_non_alphanumeric': 0.19321148825065274, 'fraction_numerical': 0.01845082680591819, 'mean_word_length': 5.914560770156438, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6949360', 'n_tokens_mistral': 2010, 'n_tokens_neox': 1898, 'n_words': 345}