Skip to content
This repository
tree: b7140d7143
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 62 lines (46 sloc) 1.316 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
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)
Something went wrong with that request. Please try again.