<commit_before>
if (QTONLY)
  # ce: don't know why this is needed here - on win32 'O2' is activated by default in release mode
  if(NOT WIN32)
    add_definitions (${QT_DEFINITIONS} -O2)
  endif(NOT WIN32)
  include_directories (${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}/src ${QT_INCLUDE_DIR})
else (QTONLY)
  if(NOT WIN32)
    add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -O2)
  endif(NOT WIN32)
  include_directories (${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}/src ${KDE4_INCLUDES})
endif (QTONLY)

if(MSVC)
  add_definitions(-D_USE_MATH_DEFINES=1)
endif(MSVC)

link_directories (${QT_LIBRARY_DIR})

set(marble_SRCS
           katlascontrol.cpp
           katlasview.cpp
           katlasviewinputhandler.cpp
           main.cpp
           texcolorizer.cpp
	   texturetile.cpp
           texloader.cpp
           texmapper.cpp
           quaternion.cpp
           katlasglobe.cpp
           katlastoolbox.cpp
           pntmap.cpp
           vectorcomposer.cpp
           vectormap.cpp
           clippainter.cpp
           geopoint.cpp
           placemarkmanager.cpp
           placecontainer.cpp
           placemarkstorage.cpp
           placefolder.cpp
           placemark.cpp
           searchlistview.cpp
           katlasmapscale.cpp
           placemarkmodel.cpp
           placemarkpainter.cpp
           maptheme.cpp
           tilescissor.cpp
           katlastilecreatordialog.cpp
           katlasthemeselectview.cpp
           katlaswindrose.cpp
           katlasviewpopupmenu.cpp
           katlascrosshair.cpp
           xmlhandler.cpp
           placemarkinfodialog.cpp
           katlasflag.cpp
           gridmap.cpp
           tinywebbrowser.cpp
           httpfetchfile.cpp
           measuretool.cpp
	   katlasaboutdialog.cpp
)

set(marble_HDRS
           katlasdirs.h
           katlascontrol.h
           katlasview.h
           katlasviewinputhandler.h
           texcolorizer.h
	   texturetile.h
           texloader.h
           texmapper.h
           quaternion.h
           katlasglobe.h
           katlastoolbox.h
           pntmap.h
           vectorcomposer.h
           vectormap.h
           clippainter.h
           geopoint.h
           placemarkmanager.h
           placecontainer.h
           placemarkstorage.h
           placefolder.h
           placemark.h
           searchlistview.h
           katlasmapscale.h
           placemarkmodel.h
           placemarkpainter.h
           maptheme.h
           tilescissor.h
           katlastilecreatordialog.h
           katlasthemeselectview.h
           katlaswindrose.h
           katlasviewpopupmenu.h
           katlascrosshair.h
           xmlhandler.h
           placemarkinfodialog.h
           katlasflag.h
           gridmap.h
           tinywebbrowser.h
           httpfetchfile.h
           measuretool.h
	   katlasaboutdialog.h
)

set (marble_UI katlastilecreatordialog.ui
	   katlastoolbox.ui placemarkinfodialog.ui katlasaboutdialog.ui)

qt4_add_resources(marble_SRCS marble.qrc)

if (QTONLY)
  qt4_wrap_ui(marble_SRCS ${marble_UI})
  qt4_automoc(${marble_SRCS})
else (QTONLY)
  kde4_add_ui_files(marble_SRCS ${marble_UI})
  kde4_automoc(${marble_SRCS})
endif (QTONLY)

#kde4_add_library (marble SHARED ${marble_SRCS})
if (QTONLY)
  add_executable (marble WIN32 ${marble_SRCS} ${marble_HDRS})<commit_msg>Add ScreenPolygon.h<commit_after>
if (QTONLY)
  # ce: don't know why this is needed here - on win32 'O2' is activated by default in release mode
  if(NOT WIN32)
    add_definitions (${QT_DEFINITIONS} -O2)
  endif(NOT WIN32)
  include_directories (${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}/src ${QT_INCLUDE_DIR})
else (QTONLY)
  if(NOT WIN32)
    add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -O2)
  endif(NOT WIN32)
  include_directories (${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}/src ${KDE4_INCLUDES})
endif (QTONLY)

if(MSVC)
  add_definitions(-D_USE_MATH_DEFINES=1)
endif(MSVC)

link_directories (${QT_LIBRARY_DIR})

set(marble_SRCS
           katlascontrol.cpp
           katlasview.cpp
           katlasviewinputhandler.cpp
           main.cpp
           texcolorizer.cpp
	   texturetile.cpp
           texloader.cpp
           texmapper.cpp
           quaternion.cpp
           katlasglobe.cpp
           katlastoolbox.cpp
           pntmap.cpp
           vectorcomposer.cpp
           vectormap.cpp
           clippainter.cpp
           geopoint.cpp
           placemarkmanager.cpp
           placecontainer.cpp
           placemarkstorage.cpp
           placefolder.cpp
           placemark.cpp
           searchlistview.cpp
           katlasmapscale.cpp
           placemarkmodel.cpp
           placemarkpainter.cpp
           maptheme.cpp
           tilescissor.cpp
           katlastilecreatordialog.cpp
           katlasthemeselectview.cpp
           katlaswindrose.cpp
           katlasviewpopupmenu.cpp
           katlascrosshair.cpp
           xmlhandler.cpp
           placemarkinfodialog.cpp
           katlasflag.cpp
           gridmap.cpp
           tinywebbrowser.cpp
           httpfetchfile.cpp
           measuretool.cpp
	   katlasaboutdialog.cpp
)

set(marble_HDRS
           katlasdirs.h
           katlascontrol.h
           katlasview.h
           katlasviewinputhandler.h
           texcolorizer.h
	   texturetile.h
           texloader.h
           texmapper.h
           quaternion.h
           katlasglobe.h
           katlastoolbox.h
           pntmap.h
           vectorcomposer.h
           vectormap.h
           clippainter.h
           geopoint.h
           placemarkmanager.h
           placecontainer.h
           placemarkstorage.h
           placefolder.h
           placemark.h
           searchlistview.h
           katlasmapscale.h
           placemarkmodel.h
           placemarkpainter.h
           maptheme.h
           tilescissor.h
           katlastilecreatordialog.h
           katlasthemeselectview.h
           katlaswindrose.h
           katlasviewpopupmenu.h
           katlascrosshair.h
           xmlhandler.h
           placemarkinfodialog.h
           katlasflag.h
           gridmap.h
           tinywebbrowser.h
           httpfetchfile.h
           measuretool.h
	   katlasaboutdialog.h
	   ScreenPolygon.h
)

set (marble_UI katlastilecreatordialog.ui
	   katlastoolbox.ui placemarkinfodialog.ui katlasaboutdialog.ui)

qt4_add_resources(marble_SRCS marble.qrc)

if (QTONLY)
  qt4_wrap_ui(marble_SRCS ${marble_UI})
  qt4_automoc(${marble_SRCS})
else (QTONLY)
  kde4_add_ui_files(marble_SRCS ${marble_UI})
  kde4_automoc(${marble_SRCS})
endif (QTONLY)

#kde4_add_library (marble SHARED ${marble_SRCS})
if (QTONLY)
  add_executable (marble WIN32 ${marble_SRCS} ${marble_HDRS})
{'fraction_non_alphanumeric': 0.0638680659670165, 'fraction_numerical': 0.00719640179910045, 'mean_word_length': 1.8643194504079004, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5959875', 'n_tokens_mistral': 2226, 'n_tokens_neox': 2182, 'n_words': 333}