<commit_before>project(razor-config-notificationd)

include_directories (
    ${CMAKE_CURRENT_BINARY_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_SOURCE_DIR}/libraries/
    )

set(NOTIFICATIONS_CONF_MOC
    advancedsettings.h
    basicsettings.h
    mainwindow.h
)

set(NOTIFICATIONS_CONF_SRC
    advancedsettings.cpp
    basicsettings.cpp
    mainwindow.cpp
    main.cpp
   )

set(NOTIFICATIONS_CONF_UI
    advancedsettings.ui
    basicsettings.ui
)


# Translations **********************************
# TODO/FIXME: why it does not work?
#include(RazorTranslate)
#
#razor_translate_desktop(DESKTOP_FILES razor-config-notificationd.desktop.in)
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/razor-config-notificationd.desktop
		   COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/razor-config-notificationd.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/razor-config-notificationd.desktop
					            COMMENT "Generating ${_FILE_NAME}${_FILE_EXT}"
						    )
#************************************************

qt4_wrap_cpp(NOTIFICATIONS_CONF_MOC_CPP ${NOTIFICATIONS_CONF_MOC})
qt4_wrap_ui(NOTIFICATIONS_CONF_UI_CPP ${NOTIFICATIONS_CONF_UI})

add_executable(${PROJECT_NAME} ${NOTIFICATIONS_CONF_SRC}
                               ${NOTIFICATIONS_CONF_MOC_CPP}
                               ${NOTIFICATIONS_CONF_UI_CPP})
add_dependencies(${PROJECT_NAME} razorqt )
target_link_libraries(${PROJECT_NAME} ${QT_QTCORE_LIBRARY}
                                      ${QT_QTGUI_LIBRARY}
                                      razorqt)

install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
install(FILES ${DESKTOP_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)<commit_msg>Fix .desktop file generation<commit_after>project(razor-config-notificationd)

include_directories (
    ${CMAKE_CURRENT_BINARY_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_SOURCE_DIR}/libraries/
    )

set(NOTIFICATIONS_CONF_MOC
    advancedsettings.h
    basicsettings.h
    mainwindow.h
)

set(NOTIFICATIONS_CONF_SRC
    advancedsettings.cpp
    basicsettings.cpp
    mainwindow.cpp
    main.cpp
   )

set(NOTIFICATIONS_CONF_UI
    advancedsettings.ui
    basicsettings.ui
)


# Translations **********************************
include(RazorTranslate)
razor_translate_desktop(DESKTOP_FILES razor-config-notificationd.desktop.in)
#************************************************

qt4_wrap_cpp(NOTIFICATIONS_CONF_MOC_CPP ${NOTIFICATIONS_CONF_MOC})
qt4_wrap_ui(NOTIFICATIONS_CONF_UI_CPP ${NOTIFICATIONS_CONF_UI})

add_executable(${PROJECT_NAME} ${NOTIFICATIONS_CONF_SRC}
                               ${NOTIFICATIONS_CONF_MOC_CPP}
                               ${NOTIFICATIONS_CONF_UI_CPP}
                               ${DESKTOP_FILES})
add_dependencies(${PROJECT_NAME} razorqt )
target_link_libraries(${PROJECT_NAME} ${QT_QTCORE_LIBRARY}
                                      ${QT_QTGUI_LIBRARY}
                                      razorqt)

install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
install(FILES ${DESKTOP_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
{'fraction_non_alphanumeric': 0.13218577460214356, 'fraction_numerical': 0.0012991230919129587, 'mean_word_length': 3.7604327666151467, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6847838', 'n_tokens_mistral': 1048, 'n_tokens_neox': 986, 'n_words': 106}