<commit_before>project(razor-config-globalkeyshortcuts)

include_directories (
    ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
    ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR}
    ${QT_QTDBUS_INCLUDE_DIR} ${QT_QTXML_INCLUDE_DIR}
    ${CMAKE_SOURCE_DIR}/libraries/
    )

set(H_FILES
	shortcuteditor.h
   )

set(MOC_FILES
	shortcuteditor.h
)

set(CPP_FILES
        main.cpp
	shortcuteditor.cpp
   )

set(UI_FILES
	shortcuteditor.ui
)

set(QRC_FILES

)

set(LIBRARIES
    razorqt
    qtxdg
)


# Translations **********************************
razor_translate_ts(QM_FILES
    SOURCES
        ${H_FILES}
        ${CPP_FILES}
        ${UI_FILES}
    INSTALLATION_DIR
        ${CMAKE_INSTALL_PREFIX}/share/razor/razor-config
)

razor_translate_desktop(DESKTOP_FILES
    SOURCES
        ${PROJECT_NAME}.desktop.in
)
#************************************************

qt4_wrap_cpp(MOC_SOURCES ${MOC_FILES})
qt4_wrap_ui(UI_HEADERS ${UI_FILES})
qt4_add_resources(QRC_SOURCES ${QRC_FILES})


add_executable(${PROJECT_NAME} ${CPP_FILES} ${UI_FILES} ${RESOURCES} ${QRC_SOURCES} ${QM_FILES} ${MOC_SOURCES} ${DESKTOP_FILES})
add_dependencies(${PROJECT_NAME} razorqt qtxdg)
target_link_libraries(${PROJECT_NAME}  ${LIBRARIES} ${QT_LIBRARIES})

install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
install(FILES ${DESKTOP_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)<commit_msg>Install translations into correct places<commit_after>project(razor-config-globalkeyshortcuts)

include_directories (
    ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
    ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR}
    ${QT_QTDBUS_INCLUDE_DIR} ${QT_QTXML_INCLUDE_DIR}
    ${CMAKE_SOURCE_DIR}/libraries/
    )

set(H_FILES
	shortcuteditor.h
   )

set(MOC_FILES
	shortcuteditor.h
)

set(CPP_FILES
        main.cpp
	shortcuteditor.cpp
   )

set(UI_FILES
	shortcuteditor.ui
)

set(QRC_FILES

)

set(LIBRARIES
    razorqt
    qtxdg
)


# Translations **********************************
razor_translate_ts(QM_FILES
    SOURCES
        ${H_FILES}
        ${CPP_FILES}
        ${UI_FILES}
)

razor_translate_desktop(DESKTOP_FILES
    SOURCES
        ${PROJECT_NAME}.desktop.in
)
#************************************************

qt4_wrap_cpp(MOC_SOURCES ${MOC_FILES})
qt4_wrap_ui(UI_HEADERS ${UI_FILES})
qt4_add_resources(QRC_SOURCES ${QRC_FILES})


add_executable(${PROJECT_NAME} ${CPP_FILES} ${UI_FILES} ${RESOURCES} ${QRC_SOURCES} ${QM_FILES} ${MOC_SOURCES} ${DESKTOP_FILES})
add_dependencies(${PROJECT_NAME} razorqt qtxdg)
target_link_libraries(${PROJECT_NAME}  ${LIBRARIES} ${QT_LIBRARIES})

install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
install(FILES ${DESKTOP_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
{'fraction_non_alphanumeric': 0.16457511652922194, 'fraction_numerical': 0.002151308712800287, 'mean_word_length': 5.992481203007519, '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': '1266170', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1054, 'n_words': 127}