parent
b89fb39eb9
commit
889fb9a029
@ -0,0 +1,82 @@
|
||||
############################################
|
||||
# #
|
||||
# Improvements and feedbacks are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
############################################
|
||||
|
||||
|
||||
cmake_minimum_required( VERSION 3.1 )
|
||||
|
||||
|
||||
#### general package setup
|
||||
|
||||
project( kommando )
|
||||
|
||||
|
||||
#### include essential cmake modules
|
||||
|
||||
include( FindPkgConfig )
|
||||
include( CheckFunctionExists )
|
||||
include( CheckSymbolExists )
|
||||
include( CheckIncludeFile )
|
||||
include( CheckLibraryExists )
|
||||
include( CheckCSourceCompiles )
|
||||
include( CheckCXXSourceCompiles )
|
||||
|
||||
|
||||
#### include our cmake modules
|
||||
|
||||
include( TDEMacros )
|
||||
|
||||
|
||||
##### set version number
|
||||
|
||||
tde_set_project_version( )
|
||||
|
||||
|
||||
##### setup install paths
|
||||
|
||||
include( TDESetupPaths )
|
||||
tde_setup_paths( )
|
||||
|
||||
|
||||
##### optional stuff
|
||||
|
||||
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
|
||||
|
||||
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
|
||||
|
||||
|
||||
##### user requested modules
|
||||
|
||||
option( BUILD_ALL "Build all" ON )
|
||||
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
|
||||
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
|
||||
|
||||
|
||||
##### configure checks
|
||||
|
||||
include( ConfigureChecks.cmake )
|
||||
|
||||
|
||||
##### global compiler settings
|
||||
|
||||
add_definitions( -DHAVE_CONFIG_H )
|
||||
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
|
||||
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||
|
||||
##### source directories
|
||||
|
||||
add_subdirectory( src )
|
||||
|
||||
tde_conditional_add_project_docs( BUILD_DOC )
|
||||
#tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
|
||||
|
||||
|
||||
##### write configure files
|
||||
|
||||
configure_file( config.h.cmake config.h @ONLY )
|
@ -0,0 +1,26 @@
|
||||
###########################################
|
||||
# #
|
||||
# Improvements and feedback are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
###########################################
|
||||
|
||||
|
||||
# required stuff
|
||||
find_package( TQt )
|
||||
find_package( TDE )
|
||||
|
||||
tde_setup_architecture_flags( )
|
||||
|
||||
include(TestBigEndian)
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
|
||||
tde_setup_largefiles( )
|
||||
|
||||
|
||||
##### check for gcc visibility support
|
||||
|
||||
if( WITH_GCC_VISIBILITY )
|
||||
tde_setup_gcc_visibility( )
|
||||
endif( WITH_GCC_VISIBILITY )
|
@ -0,0 +1,8 @@
|
||||
#define VERSION "@VERSION@"
|
||||
|
||||
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
|
||||
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
@ -0,0 +1,74 @@
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
${TDE_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
|
||||
##### autostart file #####
|
||||
|
||||
#tde_create_translated_desktop(
|
||||
# SOURCE polkit-agent-tde.desktop
|
||||
# DESTINATION ${AUTOSTART_INSTALL_DIR} )
|
||||
|
||||
|
||||
##### kommando (shared)
|
||||
tde_add_library( kommando SHARED AUTOMOC
|
||||
SOURCES
|
||||
menulistviewitem.cpp configuration.cpp menu.cpp
|
||||
commandobutton.cpp roundbutton.cpp kommandoview.cpp
|
||||
VERSION 1.0.0
|
||||
LINK tdecore-shared tdeio-shared
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### kommandod (kded module)
|
||||
tde_add_kpart( kded_kommandod AUTOMOC
|
||||
SOURCES kommandod.cpp kommandod.skel kommando.cpp
|
||||
LINK tdeinit_kded-shared Xmu kommando-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
##### kcm_kommando (kpart)
|
||||
|
||||
tde_add_kpart( kcm_kommando MODULE AUTOMOC
|
||||
SOURCES configdialogimpl.cpp configdialog.ui kcmkommando.cpp servicemenu.cpp
|
||||
LINK
|
||||
tdeinit_kded-shared tdecore-shared tdeui-shared Xmu kommando-shared
|
||||
tdeio-shared
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### other data ################################
|
||||
|
||||
#tde_create_translated_desktop(
|
||||
# SOURCE mediamanager.desktop
|
||||
# DESTINATION ${SERVICES_INSTALL_DIR}/kded
|
||||
# PO_DIR tdeioslave-desktops
|
||||
#)
|
||||
#
|
||||
#tde_create_translated_desktop(
|
||||
# SOURCE mediabackend.desktop
|
||||
# DESTINATION ${AUTOSTART_INSTALL_DIR}
|
||||
# PO_DIR tdeioslave-desktops
|
||||
#)
|
||||
|
||||
install(
|
||||
FILES kommandod.desktop
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}/kded
|
||||
)
|
||||
|
||||
install(
|
||||
FILES kommando.desktop
|
||||
DESTINATION ${XDG_APPS_INSTALL_DIR}
|
||||
)
|
||||
|
@ -1,14 +1,17 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Kommando
|
||||
Exec=tdecmshell kommando
|
||||
Icon=kommando
|
||||
Type=Application
|
||||
Categories=Qt;TDE;X-TDE-settings-desktop;
|
||||
Keywords=Kommando;wheel;menu
|
||||
X-TDE-ModuleType=Library
|
||||
Encoding=UTF-8
|
||||
|
||||
X-TDE-Library=kommando
|
||||
X-TDE-ParentApp=kcontrol
|
||||
Comment=A WheelMenu for KDE
|
||||
Comment[de]=Ein Kreismenü für KDE
|
||||
|
||||
Name=Kommando
|
||||
|
||||
Comment=A WheelMenu for TDE
|
||||
Comment[de]=Ein Kreismenü für TDE
|
||||
Comment[it]=Un menu circolare per TDE
|
||||
|
||||
Categories=Qt;TDE;X-TDE-settings-desktop;
|
||||
Keywords=Kommando;wheel;menu
|
||||
|
Loading…
Reference in new issue