This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
project(quickusbformatter) |
| 2 |
cmake_minimum_required(VERSION 2.6) |
| 3 |
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) |
| 4 |
|
| 5 |
find_package(KDE4 REQUIRED) |
| 6 |
include (KDE4Defaults) |
| 7 |
find_package(MSGFMT REQUIRED) |
| 8 |
|
| 9 |
add_definitions(${KDE4_ENABLE_EXCEPTIONS}) |
| 10 |
|
| 11 |
include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} ) |
| 12 |
|
| 13 |
add_subdirectory(translations) |
| 14 |
|
| 15 |
set(quickusbformatter_SRCS |
| 16 |
main.cpp |
| 17 |
window.cpp |
| 18 |
devices.cpp |
| 19 |
usbdevice.cpp |
| 20 |
threadformat.cpp |
| 21 |
) |
| 22 |
|
| 23 |
# // Desktop location |
| 24 |
set(DESKTOP_SOLID_ACTION_DIR ${DATA_INSTALL_DIR}/solid/actions ) |
| 25 |
|
| 26 |
kde4_add_ui_files(quickusbformatter_SRCS window.ui) |
| 27 |
|
| 28 |
kde4_add_executable(quickusbformatter ${quickusbformatter_SRCS}) |
| 29 |
|
| 30 |
target_link_libraries(quickusbformatter ${KDE4_KDEUI_LIBS} ${KDE4_SOLID_LIBS}) |
| 31 |
message("******************************************************") |
| 32 |
message("**** The *.desktop file will be installed here : ${DESKTOP_SOLID_ACTION_DIR}") |
| 33 |
message("**** Binari will go here : ${KDE4_BIN_INSTALL_DIR}") |
| 34 |
message("******************************************************") |
| 35 |
|
| 36 |
install(TARGETS quickusbformatter DESTINATION ${KDE4_BIN_INSTALL_DIR}) |
| 37 |
install(FILES quickusbformatter.desktop DESTINATION ${DESKTOP_SOLID_ACTION_DIR}) |