Add common cmake module. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>pull/2/head
parent
c2446367db
commit
0ef4ca6d36
@ -1,3 +1,6 @@
|
|||||||
[submodule "admin"]
|
[submodule "admin"]
|
||||||
path = admin
|
path = admin
|
||||||
url = http://system@scm.trinitydesktop.org/scm/git/tde-common-admin
|
url = http://system@scm.trinitydesktop.org/scm/git/tde-common-admin
|
||||||
|
[submodule "cmake"]
|
||||||
|
path = cmake
|
||||||
|
url = https://system@scm.trinitydesktop.org/scm/git/tde-common-cmake
|
||||||
|
@ -1,104 +1,82 @@
|
|||||||
project(kpilot)
|
#################################################
|
||||||
|
#
|
||||||
if(EXISTS ${CMAKE_SOURCE_DIR}/CMakeOptions.txt)
|
# (C) 2019 Slávek Banko
|
||||||
include(${CMAKE_SOURCE_DIR}/CMakeOptions.txt)
|
# slavek.banko (AT) axis.cz
|
||||||
else(EXISTS ${CMAKE_SOURCE_DIR}/CMakeOptions.txt)
|
#
|
||||||
message(FATAL_ERROR "CMakeOptions.txt not found! Run configure first.")
|
# Improvements and feedbacks are welcome
|
||||||
endif(EXISTS ${CMAKE_SOURCE_DIR}/CMakeOptions.txt)
|
#
|
||||||
|
# This file is released under GPL >= 3
|
||||||
# Search our own cmake modules path first
|
#
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
|
#################################################
|
||||||
|
|
||||||
# Need 2.4.3 for its KDE3 support
|
|
||||||
# Need 2.4.4 for its fixed KDE3 support
|
|
||||||
cmake_minimum_required(VERSION 2.8 )
|
|
||||||
|
|
||||||
CONFIGURE_FILE(
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
|
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
|
||||||
IMMEDIATE @ONLY)
|
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET(uninstall
|
|
||||||
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
|
||||||
|
|
||||||
# Disallow in-source build
|
|
||||||
STRING(COMPARE EQUAL "${kpilot_SOURCE_DIR}" "${kpilot_BINARY_DIR}" insource)
|
|
||||||
if(insource)
|
|
||||||
MESSAGE(FATAL_ERROR
|
|
||||||
"KPilot requires an out of source build. Please create a separate build
|
|
||||||
directory and run 'cmake path_to_kpilot [options]' there."
|
|
||||||
)
|
|
||||||
endif(insource)
|
|
||||||
|
|
||||||
find_package(Qt3) # find and setup Qt3 for this project
|
|
||||||
|
|
||||||
if (NOT TQT_INCLUDE_DIR)
|
|
||||||
MESSAGE(STATUS_ERROR "Qt3 package not found--assuming TQt4")
|
|
||||||
SET(TQT_INCLUDE_DIR "/usr/include/qt4" CACHE PATH "" FORCE)
|
|
||||||
endif (NOT TQT_INCLUDE_DIR)
|
|
||||||
SET(QT_UIC_EXECUTABLE "/usr/bin/uic-tqt")
|
|
||||||
SET(QT_MOC_EXECUTABLE "/usr/bin/tmoc")
|
|
||||||
|
|
||||||
find_package(KDE3 REQUIRED) # find and setup KDE3 for this project
|
|
||||||
find_package(Pilotlink REQUIRED)
|
|
||||||
find_package(Mal) # see if mal is available, but it's not required
|
|
||||||
|
|
||||||
add_definitions(
|
|
||||||
${QT_DEFINITIONS}
|
|
||||||
${KDE3_DEFINITIONS}
|
|
||||||
-DTQT_THREAD_SUPPORT
|
|
||||||
)
|
|
||||||
|
|
||||||
STRING(COMPARE EQUAL "${CMAKE_BUILD_TYPE}" "debug" builddebug)
|
|
||||||
if (NOT builddebug)
|
|
||||||
add_definitions(-DNDEBUG)
|
|
||||||
endif(NOT builddebug)
|
|
||||||
|
|
||||||
|
|
||||||
# Get the trinity dir. This is a bit tricky, i'm not sure how well
|
|
||||||
# this works on other systems.
|
|
||||||
STRING(REPLACE "/lib" "" KDE3_DIR ${KDE3_LIB_DIR})
|
|
||||||
|
|
||||||
# TODO: INSTALL PREFIX. RIGHT NOW EVERYTHING IS INSTALLED IN $TDEDIR
|
|
||||||
if(NOT CMAKE_INSTALL_PREFIX)
|
|
||||||
set(CMAKE_INSTALL_PREFIX ${KDE3_DIR})
|
|
||||||
endif(NOT CMAKE_INSTALL_PREFIX)
|
|
||||||
set(KDE3_KCFG_DIR ${CMAKE_INSTALL_PREFIX}/share/config.kcfg)
|
|
||||||
set(KDE3_SERVICETYPES_DIR ${CMAKE_INSTALL_PREFIX}/share/servicetypes)
|
|
||||||
set(KDE3_SERVICES_DIR ${CMAKE_INSTALL_PREFIX}/share/services)
|
|
||||||
set(KDE3_XDG_APPS_DIR ${CMAKE_INSTALL_PREFIX}/share/applications/tde)
|
|
||||||
set(KDE3_LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib)
|
|
||||||
set(KDE3_PLUGIN_INSTALL_DIR ${KDE3_LIB_INSTALL_DIR}/trinity)
|
|
||||||
|
|
||||||
# tell cmake where to search for libraries:
|
|
||||||
link_directories(${KDE3_LIB_DIR})
|
|
||||||
|
|
||||||
# tell cmake where to search for Qt/KDE headers:
|
|
||||||
include_directories(${PILOTLINK_INCLUDE_DIR} ${KDE3_INCLUDE_DIR} ${TQT_INCLUDE_DIR})
|
|
||||||
|
|
||||||
# include custom macros
|
|
||||||
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/modules/KPilotCustom.cmake)
|
|
||||||
|
|
||||||
# tell cmake to process CMakeLists.txt in that subdirectory
|
|
||||||
add_subdirectory(lib)
|
|
||||||
add_subdirectory(kpilot)
|
|
||||||
add_subdirectory(conduits)
|
|
||||||
|
|
||||||
|
|
||||||
STRING(COMPARE EQUAL "${ENABLE_TESTS}" "YES" buildtests)
|
|
||||||
if (buildtests)
|
|
||||||
MESSAGE(STATUS "BUILD: Test suite enabled.")
|
|
||||||
enable_testing()
|
|
||||||
add_subdirectory(tests)
|
|
||||||
else (buildtests)
|
|
||||||
MESSAGE(STATUS "BUILD: Test suite disabled.")
|
|
||||||
endif(buildtests)
|
|
||||||
|
|
||||||
if (builddebug)
|
|
||||||
MESSAGE(STATUS "BUILD: Debug build selected.")
|
|
||||||
else(builddebug)
|
|
||||||
MESSAGE(STATUS "BUILD: Normal build selected.")
|
|
||||||
endif(builddebug)
|
|
||||||
|
|
||||||
MESSAGE(STATUS "BUILD: Install prefix set to ${CMAKE_INSTALL_PREFIX} .")
|
|
||||||
|
|
||||||
|
cmake_minimum_required( VERSION 2.8 )
|
||||||
|
|
||||||
|
|
||||||
|
#### general package setup ######################
|
||||||
|
|
||||||
|
project( kpilot )
|
||||||
|
set( VERSION R14.1.0 )
|
||||||
|
|
||||||
|
|
||||||
|
#### include essential cmake modules ############
|
||||||
|
|
||||||
|
include( FindPkgConfig )
|
||||||
|
include( CheckCSourceCompiles )
|
||||||
|
include( CheckCXXSourceCompiles )
|
||||||
|
include( CheckIncludeFile )
|
||||||
|
include( CheckFunctionExists )
|
||||||
|
include( CheckLibraryExists )
|
||||||
|
include( CheckSymbolExists )
|
||||||
|
|
||||||
|
|
||||||
|
#### include our cmake modules ##################
|
||||||
|
|
||||||
|
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
|
||||||
|
include( TDEMacros )
|
||||||
|
|
||||||
|
|
||||||
|
##### 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" )
|
||||||
|
|
||||||
|
|
||||||
|
##### directories ###############################
|
||||||
|
|
||||||
|
add_subdirectory( lib )
|
||||||
|
add_subdirectory( kpilot )
|
||||||
|
add_subdirectory( conduits )
|
||||||
|
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
||||||
|
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
|
||||||
|
|
||||||
|
|
||||||
|
##### write configure files #####################
|
||||||
|
|
||||||
|
configure_file( config.h.cmake config.h @ONLY )
|
||||||
|
@ -0,0 +1,62 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2019 Slávek Banko
|
||||||
|
# slavek.banko (AT) axis.cz
|
||||||
|
#
|
||||||
|
# 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)
|
||||||
|
|
||||||
|
|
||||||
|
##### check for gcc visibility support ##########
|
||||||
|
|
||||||
|
if( WITH_GCC_VISIBILITY )
|
||||||
|
if( NOT UNIX )
|
||||||
|
tde_message_fatal( "gcc visibility support was requested, but your system is not *NIX" )
|
||||||
|
endif( NOT UNIX )
|
||||||
|
set( __KDE_HAVE_GCC_VISIBILITY 1 )
|
||||||
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
|
||||||
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
|
||||||
|
endif( WITH_GCC_VISIBILITY )
|
||||||
|
|
||||||
|
|
||||||
|
##### gettext ###################################
|
||||||
|
|
||||||
|
if( BUILD_TRANSLATIONS )
|
||||||
|
include( FindGettext )
|
||||||
|
if( GETTEXT_FOUND )
|
||||||
|
set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
|
||||||
|
CACHE FILEPATH "path to msgfmt executable" )
|
||||||
|
endif( GETTEXT_FOUND )
|
||||||
|
|
||||||
|
if( NOT MSGFMT_EXECUTABLE )
|
||||||
|
tde_message_fatal( "msgfmt is required but was not found on your system." )
|
||||||
|
endif( NOT MSGFMT_EXECUTABLE )
|
||||||
|
endif( BUILD_TRANSLATIONS )
|
||||||
|
|
||||||
|
|
||||||
|
##### check headers #############################
|
||||||
|
|
||||||
|
check_function_exists( strlcat HAVE_STRLCAT )
|
||||||
|
check_symbol_exists( strlcat "string.h" HAVE_STRLCAT_PROTO )
|
||||||
|
check_function_exists( strlcpy HAVE_STRLCPY )
|
||||||
|
check_symbol_exists( strlcpy "string.h" HAVE_STRLCPY_PROTO )
|
||||||
|
|
||||||
|
|
||||||
|
##### check libraries ###########################
|
||||||
|
|
||||||
|
pkg_search_module( PILOTLINK pilot-link )
|
||||||
|
if( NOT PILOTLINK_FOUND)
|
||||||
|
tde_message_fatal( "PilotLink is required but not found on your system." )
|
||||||
|
endif( )
|
@ -0,0 +1 @@
|
|||||||
|
Subproject commit b88855a2934b96a2af767d1cecfae5ca66641fdf
|
@ -1,62 +0,0 @@
|
|||||||
INCLUDE(CheckCXXSourceCompiles)
|
|
||||||
|
|
||||||
set(CMAKE_INCLUDE_PATH "${MAL_BASE}/include")
|
|
||||||
FIND_PATH(MAL_INCLUDE_DIR libmal.h
|
|
||||||
${MAL_BASE}/include
|
|
||||||
${MAL_BASE}/include/libmal
|
|
||||||
/usr/include
|
|
||||||
/usr/include/libmal
|
|
||||||
/usr/local/include
|
|
||||||
/usr/local/include/libmal
|
|
||||||
)
|
|
||||||
set(CMAKE_LIBRARY_PATH "${MAL_BASE}/lib")
|
|
||||||
FIND_LIBRARY(MAL_LIBRARY mal
|
|
||||||
${MAL_BASE}/lib
|
|
||||||
/usr/lib
|
|
||||||
/usr/lib/libmal
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/local/lib/libmal
|
|
||||||
)
|
|
||||||
|
|
||||||
IF (NOT MAL_INCLUDE_DIR)
|
|
||||||
MESSAGE(STATUS "Could not find libmal.h")
|
|
||||||
ELSE (NOT MAL_INCLUDE_DIR)
|
|
||||||
MESSAGE(STATUS "Found libmal.h in ${MAL_INCLUDE_DIR}")
|
|
||||||
ENDIF (NOT MAL_INCLUDE_DIR)
|
|
||||||
|
|
||||||
IF (NOT MAL_LIBRARY)
|
|
||||||
MESSAGE(STATUS "Could not find libmal")
|
|
||||||
ELSE (NOT MAL_LIBRARY)
|
|
||||||
MESSAGE(STATUS "Found libmal in ${MAL_LIBRARY}")
|
|
||||||
ENDIF (NOT MAL_LIBRARY)
|
|
||||||
|
|
||||||
IF (MAL_INCLUDE_DIR AND MAL_LIBRARY)
|
|
||||||
SET(MAL_FOUND TRUE)
|
|
||||||
ENDIF (MAL_INCLUDE_DIR AND MAL_LIBRARY)
|
|
||||||
|
|
||||||
IF (MAL_FOUND)
|
|
||||||
SET(CMAKE_REQUIRED_INCLUDES ${MAL_INCLUDE_DIR} ${PILOTLINK_INCLUDE_DIR})
|
|
||||||
CHECK_CXX_SOURCE_COMPILES("
|
|
||||||
#include <libmal.h>
|
|
||||||
#define LIBMAL_IS(a,b) ((LIBMAL_VERSION > a) || ((LIBMAL_VERSION == a) && ((LIBMAL_MAJOR > b) || (LIBMAL_MAJOR == b))))
|
|
||||||
#if !LIBMAL_IS(0,40)
|
|
||||||
#error \"Libmal version is < 0.40\"
|
|
||||||
#else
|
|
||||||
int main() { return 0; }
|
|
||||||
#endif
|
|
||||||
"
|
|
||||||
MAL_VERSION_OK)
|
|
||||||
ENDIF (MAL_FOUND)
|
|
||||||
|
|
||||||
IF (NOT MAL_VERSION_OK)
|
|
||||||
SET(MAL_FOUND FALSE)
|
|
||||||
MESSAGE(STATUS "Found mal, but it's not at least version 0.40.")
|
|
||||||
ENDIF (NOT MAL_VERSION_OK)
|
|
||||||
|
|
||||||
|
|
||||||
IF (MAL_FOUND)
|
|
||||||
MESSAGE(STATUS "Found mal: ${MAL_LIBRARY}")
|
|
||||||
ELSE (MAL_FOUND)
|
|
||||||
MESSAGE(STATUS "Couldn't find acceptable mal version. Won't be able to build malconduit")
|
|
||||||
ENDIF (MAL_FOUND)
|
|
||||||
|
|
@ -1,55 +0,0 @@
|
|||||||
INCLUDE(CheckCXXSourceCompiles)
|
|
||||||
|
|
||||||
set(CMAKE_INCLUDE_PATH "${PILOTLINK_BASE}/include")
|
|
||||||
FIND_PATH(PILOTLINK_INCLUDE_DIR pi-dlp.h
|
|
||||||
/usr/include
|
|
||||||
/usr/include/libpisock
|
|
||||||
/usr/local/include
|
|
||||||
)
|
|
||||||
set(CMAKE_LIBRARY_PATH "${PILOTLINK_BASE}/lib")
|
|
||||||
FIND_LIBRARY(PILOTLINK_LIBRARY pisock
|
|
||||||
/usr/lib
|
|
||||||
/usr/local/lib
|
|
||||||
)
|
|
||||||
|
|
||||||
IF (NOT PILOTLINK_INCLUDE_DIR)
|
|
||||||
MESSAGE(STATUS "Could not find pilot-link (pi-dlp.h)")
|
|
||||||
ELSE (NOT PILOTLINK_INCLUDE_DIR)
|
|
||||||
MESSAGE(STATUS "Found pilot-link includes in ${PILOTLINK_INCLUDE_DIR}")
|
|
||||||
ENDIF (NOT PILOTLINK_INCLUDE_DIR)
|
|
||||||
|
|
||||||
IF (NOT PILOTLINK_LIBRARY)
|
|
||||||
MESSAGE(STATUS "Could not find pilot-link (libpisock.so)")
|
|
||||||
ELSE (NOT PILOTLINK_LIBRARY)
|
|
||||||
MESSAGE(STATUS "Found pilot-link libraries in ${PILOTLINK_LIBRARY}")
|
|
||||||
ENDIF (NOT PILOTLINK_LIBRARY)
|
|
||||||
|
|
||||||
IF (PILOTLINK_INCLUDE_DIR AND PILOTLINK_LIBRARY)
|
|
||||||
SET(PILOTLINK_FOUND TRUE)
|
|
||||||
ENDIF (PILOTLINK_INCLUDE_DIR AND PILOTLINK_LIBRARY)
|
|
||||||
|
|
||||||
IF (PILOTLINK_FOUND)
|
|
||||||
SET(CMAKE_REQUIRED_INCLUDES ${PILOTLINK_INCLUDE_DIR})
|
|
||||||
CHECK_CXX_SOURCE_COMPILES("
|
|
||||||
#include <pi-version.h>
|
|
||||||
#if !PILOT_LINK_IS(0,12,0)
|
|
||||||
#error \"Pilot-link version is < 0.12.0\"
|
|
||||||
#else
|
|
||||||
int main() { return 0; }
|
|
||||||
#endif
|
|
||||||
"
|
|
||||||
PILOTLINK_VERSION_OK)
|
|
||||||
ENDIF (PILOTLINK_FOUND)
|
|
||||||
|
|
||||||
IF (NOT PILOTLINK_VERSION_OK)
|
|
||||||
SET(PILOTLINK_FOUND FALSE)
|
|
||||||
ENDIF (NOT PILOTLINK_VERSION_OK)
|
|
||||||
|
|
||||||
|
|
||||||
IF (NOT PILOTLINK_FOUND)
|
|
||||||
IF (Pilotlink_FIND_REQUIRED)
|
|
||||||
MESSAGE(STATUS "KPilot requires pilot-link 0.12.0 or later. Pilot-link is available from pilot-link.org and is packaged by most distributions. Remember to install the development package with the compilation headers as well.")
|
|
||||||
MESSAGE(FATAL_ERROR "Could not find pilot-link.")
|
|
||||||
ENDIF (Pilotlink_FIND_REQUIRED)
|
|
||||||
ENDIF (NOT PILOTLINK_FOUND)
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
|||||||
MACRO(KDE3_INSTALL_ICONS_CUSTOM _theme)
|
|
||||||
ADD_CUSTOM_TARGET(install_icons )
|
|
||||||
SET_TARGET_PROPERTIES(install_icons PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake )
|
|
||||||
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake "# icon installations rules\n")
|
|
||||||
FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake "SET(CMAKE_BACKWARDS_COMPATIBILITY \"2.2\") \n")
|
|
||||||
|
|
||||||
FILE(GLOB _icons *.png)
|
|
||||||
FOREACH(_current_ICON ${_icons} )
|
|
||||||
STRING(REGEX REPLACE "^.*/[a-zA-Z]+([0-9]+)\\-([a-z]+)\\-(.+\\.png)$" "\\1" _size "${_current_ICON}")
|
|
||||||
STRING(REGEX REPLACE "^.*/[a-zA-Z]+([0-9]+)\\-([a-z]+)\\-(.+\\.png)$" "\\2" _group "${_current_ICON}")
|
|
||||||
STRING(REGEX REPLACE "^.*/[a-zA-Z]+([0-9]+)\\-([a-z]+)\\-(.+\\.png)$" "\\3" _name "${_current_ICON}")
|
|
||||||
|
|
||||||
SET(_icon_GROUP "unknown")
|
|
||||||
|
|
||||||
IF(${_group} STREQUAL "mime")
|
|
||||||
SET(_icon_GROUP "mimetypes")
|
|
||||||
ENDIF(${_group} STREQUAL "mime")
|
|
||||||
|
|
||||||
IF(${_group} STREQUAL "filesys")
|
|
||||||
SET(_icon_GROUP "filesystems")
|
|
||||||
ENDIF(${_group} STREQUAL "filesys")
|
|
||||||
|
|
||||||
IF(${_group} STREQUAL "device")
|
|
||||||
SET(_icon_GROUP "devices")
|
|
||||||
ENDIF(${_group} STREQUAL "device")
|
|
||||||
|
|
||||||
IF(${_group} STREQUAL "app")
|
|
||||||
SET(_icon_GROUP "apps")
|
|
||||||
ENDIF(${_group} STREQUAL "app")
|
|
||||||
|
|
||||||
IF(${_group} STREQUAL "action")
|
|
||||||
SET(_icon_GROUP "actions")
|
|
||||||
ENDIF(${_group} STREQUAL "action")
|
|
||||||
|
|
||||||
IF( NOT ${_icon_GROUP} STREQUAL "unknown")
|
|
||||||
# message(STATUS "icon: ${_current_ICON} size: ${_size} group: ${_group} name: ${_name}" )
|
|
||||||
SET(_ICON_INSTALL_NAME ${CMAKE_INSTALL_PREFIX}/share/icons/${_theme}/${_size}x${_size}/${_icon_GROUP}/${_name})
|
|
||||||
FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake "message(STATUS \"Installing ${_ICON_INSTALL_NAME}\") \n")
|
|
||||||
FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake "CONFIGURE_FILE( ${_current_ICON} ${_ICON_INSTALL_NAME} COPYONLY) \n")
|
|
||||||
ELSE( NOT ${_icon_GROUP} STREQUAL "unknown")
|
|
||||||
message(STATUS "icon: ${_current_ICON} doesn't fit naming conventions. ignoring." )
|
|
||||||
ENDIF( NOT ${_icon_GROUP} STREQUAL "unknown")
|
|
||||||
|
|
||||||
ENDFOREACH (_current_ICON)
|
|
||||||
ENDMACRO(KDE3_INSTALL_ICONS_CUSTOM)
|
|
||||||
|
|
||||||
|
|
||||||
MACRO(KPILOT_RPATH _thing)
|
|
||||||
set_target_properties(${_thing} PROPERTIES
|
|
||||||
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib;${KDE3_DIR}/lib;${PILOTLINK_LIBRARY}
|
|
||||||
INSTALL_RPATH_USE_LINK_PATH true
|
|
||||||
)
|
|
||||||
ENDMACRO(KPILOT_RPATH _thing)
|
|
@ -1,23 +0,0 @@
|
|||||||
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
|
|
||||||
MESSAGE(FATAL_ERROR "Cannot find install manifest:
|
|
||||||
\"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
|
|
||||||
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
|
|
||||||
|
|
||||||
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
|
|
||||||
STRING(REGEX REPLACE "\n" ";" files "${files}")
|
|
||||||
FOREACH(file ${files})
|
|
||||||
MESSAGE(STATUS "Uninstalling \"${file}\"")
|
|
||||||
IF(EXISTS "${file}")
|
|
||||||
EXEC_PROGRAM(
|
|
||||||
"@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
|
|
||||||
OUTPUT_VARIABLE rm_out
|
|
||||||
RETURN_VALUE rm_retval
|
|
||||||
)
|
|
||||||
IF("${rm_retval}" STREQUAL 0)
|
|
||||||
ELSE("${rm_retval}" STREQUAL 0)
|
|
||||||
MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
|
|
||||||
ENDIF("${rm_retval}" STREQUAL 0)
|
|
||||||
ELSE(EXISTS "${file}")
|
|
||||||
MESSAGE(STATUS "File \"${file}\" does not exist.")
|
|
||||||
ENDIF(EXISTS "${file}")
|
|
||||||
ENDFOREACH(file)
|
|
@ -1,35 +1,11 @@
|
|||||||
include_directories(
|
##### directories ###############################
|
||||||
${CMAKE_BINARY_DIR}/lib
|
|
||||||
${CMAKE_SOURCE_DIR}/lib
|
add_subdirectory( abbrowserconduit )
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
add_subdirectory( docconduit )
|
||||||
)
|
add_subdirectory( knotes )
|
||||||
|
add_subdirectory( memofileconduit )
|
||||||
add_subdirectory(abbrowserconduit)
|
add_subdirectory( notepadconduit )
|
||||||
add_subdirectory(docconduit)
|
add_subdirectory( popmail )
|
||||||
add_subdirectory(knotes)
|
add_subdirectory( sysinfoconduit )
|
||||||
add_subdirectory(memofileconduit)
|
add_subdirectory( timeconduit )
|
||||||
add_subdirectory(notepadconduit)
|
add_subdirectory( vcalconduit )
|
||||||
add_subdirectory(null)
|
|
||||||
add_subdirectory(popmail)
|
|
||||||
add_subdirectory(sysinfoconduit)
|
|
||||||
add_subdirectory(timeconduit)
|
|
||||||
|
|
||||||
FIND_PATH( HAVE_CALENDARLOCAL_H "libkcal/calendarlocal.h" ${KDE3_INCLUDE_DIR} )
|
|
||||||
|
|
||||||
IF (HAVE_CALENDARLOCAL_H)
|
|
||||||
add_subdirectory(vcalconduit)
|
|
||||||
ELSE (HAVE_CALENDARLOCAL_H)
|
|
||||||
MESSAGE(STATUS "No KDE PIM development headers were found.")
|
|
||||||
ENDIF (HAVE_CALENDARLOCAL_H)
|
|
||||||
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# MAL seems to be broken, or the MAL API has changed somewhat
|
|
||||||
# since the last time that the conduit was compiled by the development
|
|
||||||
# team. Since we don't use the conduit it is disabled.
|
|
||||||
IF (MAL_FOUND)
|
|
||||||
add_subdirectory(malconduit)
|
|
||||||
ELSE (MAL_FOUND)
|
|
||||||
MESSAGE(STATUS "Couldn't find mal. Won't be able to build malconduit")
|
|
||||||
ENDIF (MAL_FOUND)
|
|
||||||
|
|
||||||
|
@ -1,46 +1,39 @@
|
|||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_abbrowser_SRCS
|
link_directories(
|
||||||
resolutionDialog.cc
|
${TQT_LIBRARY_DIRS}
|
||||||
abbrowser-factory.cc
|
|
||||||
abbrowser-setup.cc
|
|
||||||
tdeabcRecord.cc
|
|
||||||
abbrowser-conduit.cc
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_abbrowser_UIS
|
|
||||||
resolutionDialog_base.ui
|
|
||||||
kaddressbookConduit.ui
|
|
||||||
)
|
|
||||||
|
|
||||||
set(conduit_abbrowser_KCFGS
|
##### conduit_address (kpart) ###################
|
||||||
abbrowserSettings.kcfgc
|
|
||||||
)
|
|
||||||
|
|
||||||
kde3_add_kcfg_files(conduit_abbrowser_SRCS ${conduit_abbrowser_KCFGS})
|
tde_add_kpart( conduit_address AUTOMOC
|
||||||
trinity_add_ui_files(conduit_abbrowser_SRCS ${conduit_abbrowser_UIS})
|
SOURCES resolutionDialog_base.ui kaddressbookConduit.ui
|
||||||
trinity_automoc(${conduit_abbrowser_SRCS})
|
abbrowserSettings.kcfgc resolutionDialog.cc abbrowser-factory.cc
|
||||||
add_library(conduit_address SHARED ${conduit_abbrowser_SRCS})
|
abbrowser-setup.cc tdeabcRecord.cc abbrowser-conduit.cc
|
||||||
target_link_libraries(conduit_address tdeabc_file tdeabc)
|
LINK kpilot-shared tdeabc-shared tdeabc_file-shared
|
||||||
set_target_properties(conduit_address PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
|
|
||||||
PREFIX ""
|
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_install_libtool_file(conduit_address)
|
|
||||||
|
|
||||||
install(
|
##### other data ################################
|
||||||
TARGETS conduit_address
|
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
install(
|
install( FILES KPilotCustomFieldEditor.ui
|
||||||
FILES abbrowser_conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
|
DESTINATION ${DATA_INSTALL_DIR}/kaddressbook/contacteditorpages
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES abbrowser_conduit.desktop
|
||||||
FILES abbrowserconduit.kcfg DESTINATION ${KDE3_KCFG_DIR}
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install( FILES abbrowserconduit.kcfg
|
||||||
|
DESTINATION ${KCFG_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
@ -1,87 +1,63 @@
|
|||||||
|
|
||||||
|
add_subdirectory( Icons )
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(doc_shared_SRCS
|
link_directories(
|
||||||
makedoc9.cc
|
${TQT_LIBRARY_DIRS}
|
||||||
pilotDOCHead.cc
|
|
||||||
pilotDOCEntry.cc
|
|
||||||
pilotDOCBookmark.cc
|
|
||||||
DOC-converter.cc
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_doc_SRCS
|
|
||||||
${doc_shared_SRCS}
|
|
||||||
kpalmdoc_dlg.cc
|
|
||||||
kpalmdoc.cpp
|
|
||||||
doc-factory.cc
|
|
||||||
doc-setup.cc
|
|
||||||
doc-conduit.cc
|
|
||||||
doc-conflictdialog.cc
|
|
||||||
)
|
|
||||||
|
|
||||||
set(conduit_doc_UIS
|
##### palmdoc (static) ##########################
|
||||||
kpalmdoc_dlgbase.ui
|
|
||||||
doc-setupdialog.ui
|
|
||||||
)
|
|
||||||
|
|
||||||
set(conduit_doc_KCFGS
|
tde_add_library( palmdoc STATIC_PIC AUTOMOC
|
||||||
docconduitSettings.kcfgc
|
SOURCES makedoc9.cc pilotDOCHead.cc
|
||||||
kpalmdocSettings.kcfgc
|
pilotDOCEntry.cc pilotDOCBookmark.cc
|
||||||
|
DOC-converter.cc
|
||||||
)
|
)
|
||||||
|
|
||||||
kde3_add_kcfg_files(conduit_doc_SRCS ${conduit_doc_KCFGS})
|
|
||||||
trinity_add_ui_files(conduit_doc_SRCS ${conduit_doc_UIS})
|
|
||||||
trinity_automoc(${conduit_doc_SRCS})
|
|
||||||
add_library(conduit_doc SHARED ${conduit_doc_SRCS})
|
|
||||||
|
|
||||||
kpilot_rpath(conduit_doc)
|
##### kpalmdoc (executable) #####################
|
||||||
|
|
||||||
set_target_properties(
|
tde_add_executable( kpalmdoc AUTOMOC
|
||||||
conduit_doc PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
|
SOURCES kpalmdocSettings.kcfgc kpalmdoc_dlgbase.ui kpalmdoc_dlg.cc
|
||||||
PREFIX ""
|
kpalmdoc.cpp
|
||||||
|
LINK tdecore-shared tdeui-shared tdeio-shared kpilot-shared palmdoc-static
|
||||||
|
DESTINATION ${BIN_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_install_libtool_file(conduit_doc)
|
|
||||||
|
|
||||||
install(
|
##### conduit_doc (kpart) #######################
|
||||||
TARGETS conduit_doc
|
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
set(kpalmdoc_SRCS
|
tde_add_kpart( conduit_doc AUTOMOC
|
||||||
${doc_shared_SRCS}
|
SOURCES docconduitSettings.kcfgc doc-factory.cc doc-setup.cc doc-conduit.cc
|
||||||
kpalmdoc_dlg.cc
|
doc-setupdialog.ui doc-conflictdialog.cc
|
||||||
kpalmdoc.cpp
|
LINK kpilot-shared tdeui-shared palmdoc-static
|
||||||
)
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
kde3_add_kcfg_files(kpalmdoc_SRCS kpalmdocSettings.kcfgc)
|
|
||||||
trinity_add_ui_files(kpalmdoc_SRCS kpalmdoc_dlgbase.ui)
|
|
||||||
trinity_automoc(${kpalmdoc_SRCS})
|
|
||||||
add_executable(kpalmdoc ${kpalmdoc_SRCS})
|
|
||||||
target_link_libraries(kpalmdoc ${TQT_LIBRARIES} kpilot tdeui tdeio)
|
|
||||||
kpilot_rpath(kpalmdoc)
|
|
||||||
|
|
||||||
install(
|
|
||||||
TARGETS kpalmdoc conduit_doc
|
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
|
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
|
||||||
FILES doc_conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
install(
|
##### other data ################################
|
||||||
FILES docconduit.kcfg kpalmdoc.kcfg DESTINATION ${KDE3_KCFG_DIR}
|
|
||||||
|
install( FILES kpalmdoc.desktop
|
||||||
|
DESTINATION ${XDG_APPS_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES kpalmdoc.upd
|
||||||
FILES kpalmdoc.desktop DESTINATION ${KDE3_XDG_APPS_DIR}
|
DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES doc_conduit.desktop
|
||||||
FILES kpalmdoc.upd
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/apps/tdeconf_update
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_subdirectory(Icons)
|
install( FILES docconduit.kcfg kpalmdoc.kcfg
|
||||||
|
DESTINATION ${KCFG_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
|
##### install icons #############################
|
||||||
|
|
||||||
trinity_install_icons_custom( hicolor )
|
tde_install_icons( kpalmdoc )
|
||||||
|
|
||||||
|
@ -1,52 +1,38 @@
|
|||||||
include_directories(
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
set(conduit_knotes_SRCS
|
|
||||||
knotes-factory.cc
|
|
||||||
knotes-setup.cc
|
|
||||||
knotes-action.cc
|
|
||||||
)
|
|
||||||
|
|
||||||
set(conduit_knotes_UIS
|
include_directories(
|
||||||
setup_base.ui
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_knotes_KCFGS
|
link_directories(
|
||||||
knotesconduitSettings.kcfgc
|
${TQT_LIBRARY_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
#set(conduit_knotes_STUBS
|
tde_import( libkmime )
|
||||||
# KNotesIface.h
|
tde_import( ktnef )
|
||||||
#)
|
tde_import( libkcal )
|
||||||
|
|
||||||
#kde3_add_dcop_skels(conduit_knotes_SRCS ${conduit_knotes_STUBS})
|
|
||||||
#kde3_add_dcop_stubs(conduit_knotes_SRCS ${conduit_knotes_STUBS})
|
|
||||||
|
|
||||||
kde3_add_kcfg_files(conduit_knotes_SRCS ${conduit_knotes_KCFGS})
|
|
||||||
trinity_add_ui_files(conduit_knotes_SRCS ${conduit_knotes_UIS})
|
|
||||||
trinity_automoc(${conduit_knotes_SRCS})
|
|
||||||
|
|
||||||
add_library(conduit_knotes SHARED ${conduit_knotes_SRCS})
|
##### conduit_knotes (kpart) ####################
|
||||||
target_link_libraries(conduit_knotes kcal)
|
|
||||||
|
|
||||||
set_target_properties(conduit_knotes PROPERTIES
|
tde_add_kpart( conduit_knotes AUTOMOC
|
||||||
LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
|
SOURCES knotesconduitSettings.kcfgc knotes-factory.cc
|
||||||
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
|
knotes-setup.cc knotes-action.cc setup_base.ui
|
||||||
PREFIX ""
|
LINK kpilot-shared tdeui-shared kcal-shared
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_install_libtool_file(conduit_knotes)
|
|
||||||
|
|
||||||
install(
|
##### other data ################################
|
||||||
TARGETS conduit_knotes
|
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
install(
|
install( FILES knotes-conduit.desktop
|
||||||
FILES knotes-conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES knotesconduit.kcfg
|
||||||
FILES knotesconduit.kcfg DESTINATION ${KDE3_KCFG_DIR}
|
DESTINATION ${KCFG_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
@ -1,44 +1,34 @@
|
|||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_memofile_SRCS
|
link_directories(
|
||||||
memofile-factory.cc
|
${TQT_LIBRARY_DIRS}
|
||||||
memofile.cc
|
|
||||||
memofiles.cc
|
|
||||||
memofile-conduit.cc
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_memofile_UIS
|
|
||||||
setup_base.ui
|
|
||||||
)
|
|
||||||
|
|
||||||
set(conduit_memofile_KCFGS
|
##### conduit_memofile (kpart) ##################
|
||||||
memofileSettings.kcfgc
|
|
||||||
)
|
|
||||||
|
|
||||||
kde3_add_kcfg_files(conduit_memofile_SRCS ${conduit_memofile_KCFGS})
|
tde_add_kpart( conduit_memofile AUTOMOC
|
||||||
trinity_add_ui_files(conduit_memofile_SRCS ${conduit_memofile_UIS})
|
SOURCES memofileSettings.kcfgc setup_base.ui memofile-factory.cc
|
||||||
trinity_automoc(${conduit_memofile_SRCS})
|
memofile.cc memofiles.cc memofile-conduit.cc
|
||||||
add_library(conduit_memofile SHARED ${conduit_memofile_SRCS})
|
LINK kpilot-shared tdeui-shared
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
set_target_properties(
|
|
||||||
conduit_memofile PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
|
|
||||||
PREFIX ""
|
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_install_libtool_file(conduit_memofile)
|
|
||||||
|
|
||||||
install(
|
##### other data ################################
|
||||||
TARGETS conduit_memofile
|
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
install(
|
install( FILES memofile-conduit.desktop
|
||||||
FILES memofile-conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES memofileconduit.kcfg
|
||||||
FILES memofileconduit.kcfg DESTINATION ${KDE3_KCFG_DIR}
|
DESTINATION ${KCFG_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
@ -1,38 +1,30 @@
|
|||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_notepad_SRCS
|
link_directories(
|
||||||
notepad-factory.cc
|
${TQT_LIBRARY_DIRS}
|
||||||
notepad-conduit.cc
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_notepad_UIS
|
|
||||||
notepad-setup.ui
|
|
||||||
)
|
|
||||||
|
|
||||||
set(conduit_notepad_KCFGS
|
##### conduit_notepad (kpart) ###################
|
||||||
notepadconduit.kcfgc
|
|
||||||
)
|
|
||||||
|
|
||||||
kde3_add_kcfg_files(conduit_notepad_SRCS ${conduit_notepad_KCFGS})
|
tde_add_kpart( conduit_notepad AUTOMOC
|
||||||
trinity_add_ui_files(conduit_notepad_SRCS ${conduit_notepad_UIS})
|
SOURCES notepadconduit.kcfgc notepad-setup.ui
|
||||||
trinity_automoc(${conduit_notepad_SRCS})
|
notepad-conduit.cc notepad-factory.cc
|
||||||
add_library(conduit_notepad SHARED ${conduit_notepad_SRCS})
|
LINK kpilot-shared tdeui-shared tdeio-shared
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
set_target_properties(
|
|
||||||
conduit_notepad PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
|
|
||||||
PREFIX ""
|
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_install_libtool_file(conduit_notepad)
|
|
||||||
|
|
||||||
install(
|
##### other data ################################
|
||||||
TARGETS conduit_notepad
|
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
install(
|
install( FILES notepad-conduit.desktop
|
||||||
FILES notepad-conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
@ -1,38 +1,33 @@
|
|||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_null_SRCS
|
link_directories(
|
||||||
null-conduit.cc
|
${TQT_LIBRARY_DIRS}
|
||||||
null-factory.cc
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_null_UIS
|
|
||||||
setup_base.ui
|
|
||||||
)
|
|
||||||
|
|
||||||
set(conduit_null_KCFGS
|
##### conduit_null (kpart) ######################
|
||||||
nullSettings.kcfgc
|
|
||||||
)
|
|
||||||
|
|
||||||
kde3_add_kcfg_files(conduit_null_SRCS ${conduit_null_KCFGS})
|
tde_add_kpart( conduit_null AUTOMOC
|
||||||
trinity_add_ui_files(conduit_null_SRCS ${conduit_null_UIS})
|
SOURCES nullSettings.kcfgc setup_base.ui null-conduit.cc null-factory.cc
|
||||||
trinity_automoc(${conduit_null_SRCS})
|
LINK kpilot-shared tdeui-shared
|
||||||
add_library(conduit_null SHARED ${conduit_null_SRCS})
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
|
|
||||||
set_target_properties(
|
|
||||||
conduit_null PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
|
|
||||||
PREFIX ""
|
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_install_libtool_file(conduit_null)
|
|
||||||
|
|
||||||
install(
|
##### other data ################################
|
||||||
TARGETS conduit_null
|
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
install( FILES null-conduit.desktop
|
||||||
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES nullconduit.kcfg
|
||||||
FILES null-conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
|
DESTINATION ${KCFG_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
@ -1,43 +1,34 @@
|
|||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_popmail_SRCS
|
link_directories(
|
||||||
popmail-factory.cc
|
${TQT_LIBRARY_DIRS}
|
||||||
popmail-conduit.cc
|
|
||||||
setupDialog.cc
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_popmail_UIS
|
|
||||||
setup-dialog.ui
|
|
||||||
)
|
|
||||||
|
|
||||||
set(conduit_popmail_KCFGS
|
##### conduit_popmail (kpart) ###################
|
||||||
popmailSettings.kcfgc
|
|
||||||
)
|
|
||||||
|
|
||||||
kde3_add_kcfg_files(conduit_popmail_SRCS ${conduit_popmail_KCFGS})
|
tde_add_kpart( conduit_popmail AUTOMOC
|
||||||
trinity_add_ui_files(conduit_popmail_SRCS ${conduit_popmail_UIS})
|
SOURCES popmailSettings.kcfgc setup-dialog.ui popmail-factory.cc
|
||||||
trinity_automoc(${conduit_popmail_SRCS})
|
setupDialog.cc popmail-conduit.cc
|
||||||
add_library(conduit_popmail SHARED ${conduit_popmail_SRCS})
|
LINK kpilot-shared tdeio-shared
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
set_target_properties(
|
|
||||||
conduit_popmail PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
|
|
||||||
PREFIX ""
|
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_install_libtool_file(conduit_popmail)
|
|
||||||
|
|
||||||
install(
|
##### other data ################################
|
||||||
TARGETS conduit_popmail
|
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
install(
|
install( FILES popmail-conduit.desktop
|
||||||
FILES popmail-conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES popmail.kcfg
|
||||||
FILES popmail.kcfg DESTINATION ${KDE3_KCFG_DIR}
|
DESTINATION ${KCFG_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
link_directories(
|
||||||
|
${TQT_LIBRARY_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### conduit_record (kpart) ####################
|
||||||
|
|
||||||
|
tde_add_kpart( conduit_record AUTOMOC
|
||||||
|
SOURCES settings.kcfgc setup_base.ui factory.cc
|
||||||
|
LINK kpilot-shared tdeui-shared
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### other data ################################
|
||||||
|
|
||||||
|
install( FILES record-conduit.desktop
|
||||||
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
install( FILES settings.kcfg
|
||||||
|
DESTINATION ${KCFG_INSTALL_DIR}
|
||||||
|
)
|
@ -1,44 +1,34 @@
|
|||||||
include_directories(
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
set(conduit_time_SRCS
|
|
||||||
time-conduit.cc
|
|
||||||
time-factory.cc
|
|
||||||
time-setup.cc
|
|
||||||
)
|
|
||||||
|
|
||||||
set(conduit_time_UIS
|
include_directories(
|
||||||
time-setup_dialog.ui
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_time_KCFGS
|
link_directories(
|
||||||
timeConduitSettings.kcfgc
|
${TQT_LIBRARY_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
kde3_add_kcfg_files(conduit_time_SRCS ${conduit_time_KCFGS})
|
|
||||||
trinity_add_ui_files(conduit_time_SRCS ${conduit_time_UIS})
|
|
||||||
trinity_automoc(${conduit_time_SRCS})
|
|
||||||
add_library(conduit_time SHARED ${conduit_time_SRCS})
|
|
||||||
|
|
||||||
kpilot_rpath(conduit_time)
|
##### conduit_time (kpart) ######################
|
||||||
|
|
||||||
set_target_properties(
|
tde_add_kpart( conduit_time AUTOMOC
|
||||||
conduit_time PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
|
SOURCES timeConduitSettings.kcfgc time-factory.cc time-setup.cc
|
||||||
PREFIX ""
|
time-conduit.cc time-setup_dialog.ui
|
||||||
|
LINK kpilot-shared tdeui-shared
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_install_libtool_file(conduit_time)
|
|
||||||
|
|
||||||
install(
|
##### other data ################################
|
||||||
TARGETS conduit_time
|
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
install(
|
install( FILES time_conduit.desktop
|
||||||
FILES time_conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES timeconduit.kcfg
|
||||||
FILES timeconduit.kcfg DESTINATION ${KDE3_KCFG_DIR}
|
DESTINATION ${KCFG_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
@ -1,75 +1,57 @@
|
|||||||
set(conduit_LIBS kcal)
|
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(conduit_SHARED
|
link_directories(
|
||||||
vcal-setupbase.cc
|
${TQT_LIBRARY_DIRS}
|
||||||
vcal-conduitbase.cc
|
|
||||||
teststate.cc
|
|
||||||
initstate.cc
|
|
||||||
pctohhstate.cc
|
|
||||||
hhtopcstate.cc
|
|
||||||
cleanupstate.cc
|
|
||||||
deleteunsyncedpcstate.cc
|
|
||||||
deleteunsyncedhhstate.cc
|
|
||||||
kcalRecord.cc
|
|
||||||
vcalRecord.cc
|
|
||||||
todoRecord.cc
|
|
||||||
)
|
)
|
||||||
|
|
||||||
kde3_add_kcfg_files(conduit_SHARED vcalconduitSettings.kcfgc)
|
tde_import( libkmime )
|
||||||
trinity_add_ui_files(conduit_SHARED korganizerConduit.ui)
|
tde_import( ktnef )
|
||||||
|
tde_import( libkcal )
|
||||||
|
|
||||||
set(conduit_vcal_SRCS
|
|
||||||
${conduit_SHARED}
|
|
||||||
vcal-conduit.cc
|
|
||||||
vcal-factory.cc
|
|
||||||
vcal-setup.cc
|
|
||||||
)
|
|
||||||
|
|
||||||
trinity_automoc(${conduit_vcal_SRCS})
|
##### vcalconduit (static) ######################
|
||||||
add_library(conduit_vcal SHARED ${conduit_vcal_SRCS})
|
|
||||||
target_link_libraries(conduit_vcal kcal)
|
|
||||||
|
|
||||||
set(conduit_todo_SRCS
|
tde_add_library( vcalconduit STATIC_PIC AUTOMOC
|
||||||
${conduit_SHARED}
|
SOURCES vcalconduitSettings.kcfgc korganizerConduit.ui
|
||||||
todo-factory.cc
|
kcalRecord.cc vcal-setupbase.cc vcal-conduitbase.cc
|
||||||
todo-setup.cc
|
cleanupstate.cc deleteunsyncedhhstate.cc
|
||||||
todo-conduit.cc
|
deleteunsyncedpcstate.cc hhtopcstate.cc
|
||||||
|
initstate.cc pctohhstate.cc teststate.cc
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_automoc(${conduit_todo_SRCS})
|
|
||||||
add_library(conduit_todo SHARED ${conduit_todo_SRCS})
|
|
||||||
target_link_libraries(conduit_todo kcal)
|
|
||||||
|
|
||||||
set_target_properties(
|
##### conduit_vcal (kpart) ######################
|
||||||
conduit_vcal PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
|
tde_add_kpart( conduit_vcal AUTOMOC
|
||||||
PREFIX ""
|
SOURCES vcal-conduit.cc vcalRecord.cc vcal-factory.cc vcal-setup.cc
|
||||||
)
|
LINK kpilot-shared kcal-shared tderesources-shared vcalconduit-static
|
||||||
set_target_properties(
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
conduit_todo PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
|
|
||||||
PREFIX ""
|
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_install_libtool_file(conduit_vcal)
|
|
||||||
|
|
||||||
install(
|
##### conduit_todo (kpart) ######################
|
||||||
TARGETS conduit_vcal conduit_todo
|
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
tde_add_kpart( conduit_todo AUTOMOC
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
SOURCES todo-conduit.cc todoRecord.cc todo-factory.cc todo-setup.cc
|
||||||
|
LINK kpilot-shared kcal-shared tderesources-shared vcalconduit-static
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_install_libtool_file(conduit_todo)
|
|
||||||
|
|
||||||
install(
|
##### other data ################################
|
||||||
FILES vcal-conduit.desktop todo-conduit.desktop
|
|
||||||
DESTINATION ${KDE3_SERVICES_DIR}
|
install( FILES vcal-conduit.desktop todo-conduit.desktop
|
||||||
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES vcalconduitbase.kcfg
|
||||||
FILES vcalconduitbase.kcfg DESTINATION ${KDE3_KCFG_DIR}
|
DESTINATION ${KCFG_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
##### directories ###############################
|
||||||
|
|
||||||
|
tde_auto_add_subdirectories( )
|
@ -1,180 +1,94 @@
|
|||||||
link_directories(${CMAKE_BINARY_DIR}/lib ${CMAKE_CURRENT_BINARY_DIR})
|
|
||||||
|
|
||||||
# Don't forget to include output directory, otherwise
|
add_subdirectory( Icons )
|
||||||
# the UI file won't be wrapped!
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_BINARY_DIR}/lib
|
${CMAKE_BINARY_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/lib
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/lib
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
link_directories(
|
||||||
###
|
${TQT_LIBRARY_DIRS}
|
||||||
#
|
|
||||||
# Settings (TDEConfigXT) shared between various parts of KPilot
|
|
||||||
#
|
|
||||||
set(settings_SRC
|
|
||||||
kpilotConfig.cc
|
|
||||||
)
|
)
|
||||||
|
|
||||||
kde3_add_kcfg_files(settings_SRC kpilotSettings.kcfgc)
|
|
||||||
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# The KCM for KPilot, used by the config dialog and the embedding in Kontact
|
|
||||||
#
|
|
||||||
set(kcmpilot_SRCS
|
|
||||||
${settings_SRC}
|
|
||||||
kpilotConfigWizard.cc
|
|
||||||
dbSelectionDialog.cc
|
|
||||||
kpilotConfigDialog.cc
|
|
||||||
conduitConfigDialog.cc
|
|
||||||
kpilotProbeDialog.cc
|
|
||||||
)
|
|
||||||
|
|
||||||
set(kcmpilot_KCFGS
|
##### configuration (static) ####################
|
||||||
kpilotConfigWizard_address.kcfgc
|
|
||||||
kpilotConfigWizard_notes.kcfgc
|
|
||||||
kpilotConfigWizard_vcal.kcfgc
|
|
||||||
)
|
|
||||||
|
|
||||||
set(kcmpilot_UIS
|
tde_add_library( configuration STATIC_PIC AUTOMOC
|
||||||
kpilotConfigDialog_device.ui
|
SOURCES kpilotConfig.cc kpilotSettings.kcfgc
|
||||||
kpilotConfigDialog_sync.ui
|
LINK tdecore-shared tdeui-shared tdeio-shared
|
||||||
kpilotConfigDialog_startup.ui
|
|
||||||
kpilotConfigDialog_viewers.ui
|
|
||||||
kpilotConfigDialog_backup.ui
|
|
||||||
kpilotConfigWizard_user.ui
|
|
||||||
kpilotConfigWizard_app.ui
|
|
||||||
dbSelection_base.ui
|
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_add_ui_files(kcmpilot_SRCS ${kcmpilot_UIS})
|
|
||||||
kde3_add_kcfg_files(kcmpilot_SRCS ${kcmpilot_KCFGS})
|
|
||||||
kde3_add_dcop_stubs(kcmpilot_SRCS pilotDaemonDCOP.h)
|
|
||||||
trinity_automoc(${kcmpilot_SRCS})
|
|
||||||
|
|
||||||
# Now add these generated files to the ADD_LIBRARY step
|
|
||||||
# If this is NOT done, then the ui_*.h files will not be generated
|
|
||||||
add_library(kcm_kpilot SHARED ${kcmpilot_SRCS})
|
|
||||||
set_target_properties(kcm_kpilot PROPERTIES
|
|
||||||
LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
|
|
||||||
PREFIX ""
|
|
||||||
)
|
|
||||||
|
|
||||||
###
|
##### kpilot (executable) #######################
|
||||||
#
|
|
||||||
# Most simple daemon-like application: kpilotTest, which
|
|
||||||
# runs whatever the command-line tells it to.
|
|
||||||
#
|
|
||||||
set(kpilotTest_SRCS
|
|
||||||
${settings_SRC}
|
|
||||||
hotSync.cc
|
|
||||||
logWidget.cc
|
|
||||||
pilotComponent.cc
|
|
||||||
main-test.cc
|
|
||||||
)
|
|
||||||
# Acts as a receiver for DCOP log messages
|
|
||||||
kde3_add_dcop_skels(kpilotTest_SRCS loggerDCOP.h)
|
|
||||||
|
|
||||||
trinity_automoc(${kpilotTest_SRCS})
|
|
||||||
add_executable(kpilotTest ${kpilotTest_SRCS})
|
|
||||||
target_link_libraries(kpilotTest ${TQT_LIBRARIES} kpilot tdeui tdeio)
|
|
||||||
kpilot_rpath(kpilotTest)
|
|
||||||
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# The real KPilot daemon.
|
|
||||||
#
|
|
||||||
set(kpilotDaemon_SRCS
|
|
||||||
${settings_SRC}
|
|
||||||
hotSync.cc
|
|
||||||
fileInstaller.cc
|
|
||||||
internalEditorAction.cc
|
|
||||||
logFile.cc
|
|
||||||
pilotDaemon.cc
|
|
||||||
)
|
|
||||||
# Both sends and receives DCOP log messages. Talks to KPilot.
|
|
||||||
kde3_add_dcop_skels(kpilotDaemon_SRCS loggerDCOP.h pilotDaemonDCOP.h)
|
|
||||||
kde3_add_dcop_stubs(kpilotDaemon_SRCS loggerDCOP.h kpilotDCOP.h)
|
|
||||||
trinity_automoc(${kpilotDaemon_SRCS})
|
|
||||||
add_executable(kpilotDaemon ${kpilotDaemon_SRCS})
|
|
||||||
target_link_libraries(kpilotDaemon ${TQT_LIBRARIES} kpilot tdeui tdeio)
|
|
||||||
kpilot_rpath(kpilotDaemon)
|
|
||||||
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# The KPilot executable (viewer / editor / configuration).
|
|
||||||
#
|
|
||||||
set(kpilot_SRCS
|
|
||||||
${settings_SRC}
|
|
||||||
logWidget.cc
|
|
||||||
kpilot.cc
|
|
||||||
dbviewerWidget.cc
|
|
||||||
dbFlagsEditor.cc
|
|
||||||
dbRecordEditor.cc
|
|
||||||
dbAppInfoEditor.cc
|
|
||||||
pilotComponent.cc
|
|
||||||
memoWidget.cc
|
|
||||||
addressWidget.cc
|
|
||||||
addressEditor.cc
|
|
||||||
datebookWidget.cc
|
|
||||||
todoWidget.cc
|
|
||||||
todoEditor.cc
|
|
||||||
fileInstaller.cc
|
|
||||||
fileInstallWidget.cc
|
|
||||||
listItems.cc
|
|
||||||
)
|
|
||||||
|
|
||||||
set(kpilot_UIS
|
tde_add_executable( kpilot AUTOMOC
|
||||||
dbFlagsEditor_base.ui
|
SOURCES pilotDaemonDCOP.stub kpilotDCOP.skel loggerDCOP.skel kpilot.cc
|
||||||
todoEditor_base.ui
|
pilotComponent.cc logWidget.cc memoWidget.cc addressWidget.cc
|
||||||
|
addressEditor.cc dbviewerWidget.cc dbFlagsEditor.cc dbFlagsEditor_base.ui
|
||||||
|
dbRecordEditor.cc dbAppInfoEditor.cc datebookWidget.cc todoWidget.cc
|
||||||
|
todoEditor.cc todoEditor_base.ui fileInstaller.cc fileInstallWidget.cc
|
||||||
|
listItems.cc
|
||||||
|
LINK tdecore-shared tdeui-shared tdeio-shared tdeutils-shared
|
||||||
|
kpilot-shared configuration-static
|
||||||
|
DESTINATION ${BIN_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
trinity_add_ui_files(kpilot_SRCS ${kpilot_UIS})
|
|
||||||
# Talks to the daemon. Listens as itself.
|
##### kpilotDaemon (executable) #################
|
||||||
kde3_add_dcop_skels(kpilot_SRCS loggerDCOP.h kpilotDCOP.h)
|
|
||||||
kde3_add_dcop_stubs(kpilot_SRCS pilotDaemonDCOP.h)
|
tde_add_executable( kpilotDaemon AUTOMOC
|
||||||
trinity_automoc(${kpilot_SRCS})
|
SOURCES pilotDaemonDCOP.skel kpilotDCOP.stub loggerDCOP.stub loggerDCOP.skel
|
||||||
add_executable(kpilot_bin ${kpilot_SRCS})
|
pilotDaemon.cc logFile.cc hotSync.cc internalEditorAction.cc
|
||||||
target_link_libraries(kpilot_bin ${TQT_LIBRARIES} kpilot tdeutils tdeui tdeio)
|
fileInstaller.cc
|
||||||
kpilot_rpath(kpilot_bin)
|
LINK tdecore-shared tdeui-shared tdeio-shared kpilot-shared
|
||||||
set_target_properties(kpilot_bin PROPERTIES
|
configuration-static
|
||||||
OUTPUT_NAME kpilot
|
DESTINATION ${BIN_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
######################### INSTALL STUFF #######################################
|
|
||||||
|
|
||||||
trinity_install_libtool_file(kcm_kpilot)
|
##### kcm_kpilot (kpart) ########################
|
||||||
|
|
||||||
install(
|
tde_add_kpart( kcm_kpilot AUTOMOC
|
||||||
TARGETS kcm_kpilot kpilot_bin kpilotDaemon
|
SOURCES pilotDaemonDCOP.stub kpilotConfigDialog.cc
|
||||||
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
|
kpilotConfigDialog_device.ui kpilotConfigDialog_sync.ui
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
|
kpilotConfigDialog_startup.ui kpilotConfigDialog_viewers.ui
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
|
kpilotConfigDialog_backup.ui conduitConfigDialog.cc kpilotProbeDialog.cc
|
||||||
|
kpilotConfigWizard_address.kcfgc kpilotConfigWizard_notes.kcfgc
|
||||||
|
kpilotConfigWizard_vcal.kcfgc kpilotConfigWizard_user.ui
|
||||||
|
kpilotConfigWizard_app.ui kpilotConfigWizard.cc dbSelectionDialog.cc
|
||||||
|
dbSelection_base.ui
|
||||||
|
LINK tdecore-shared tdeui-shared tdeio-shared kpilot-shared
|
||||||
|
configuration-static
|
||||||
|
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
install( FILES kpilotui.rc DESTINATION ${CMAKE_INSTALL_PREFIX}/share/apps/kpilot)
|
|
||||||
|
|
||||||
install(
|
##### other data ################################
|
||||||
FILES kpilot.desktop kpilotdaemon.desktop DESTINATION ${KDE3_XDG_APPS_DIR}
|
|
||||||
|
install( FILES kpilotui.rc
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES kpilot.desktop kpilotdaemon.desktop
|
||||||
FILES kpilotconduit.desktop DESTINATION ${KDE3_SERVICETYPES_DIR}
|
DESTINATION ${XDG_APPS_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES kpilot.upd
|
||||||
FILES kpilot_config.desktop DESTINATION ${KDE3_SERVICES_DIR}
|
DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update
|
||||||
)
|
)
|
||||||
|
|
||||||
install (
|
install( FILES kpilot_config.desktop
|
||||||
FILES kpilot.upd
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/apps/tdeconf_update
|
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install( FILES kpilotconduit.desktop
|
||||||
FILES kpilot.kcfg DESTINATION ${KDE3_KCFG_DIR}
|
DESTINATION ${SERVICETYPES_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_subdirectory(Icons)
|
install( FILES kpilot.kcfg
|
||||||
|
DESTINATION ${KCFG_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
@ -1,4 +1,31 @@
|
|||||||
|
##### install icons #############################
|
||||||
|
|
||||||
trinity_install_icons_custom( hicolor )
|
tde_install_icons( kpilot kpilotDaemon )
|
||||||
|
|
||||||
install( FILES kpilot-splash.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/apps/kpilot/pics/)
|
|
||||||
|
##### install other icons #######################
|
||||||
|
|
||||||
|
unset( _other_icons )
|
||||||
|
file( GLOB _icon_files *-*.png *-*.mng *-*.svg* )
|
||||||
|
foreach( _icon_file ${_icon_files} )
|
||||||
|
string( REGEX REPLACE ".*-([^.]*)\\.(png|mng|svg.*)$" "\\1" _icon ${_icon_file} )
|
||||||
|
if( NOT "${_icon}" STREQUAL "kpilot"
|
||||||
|
AND NOT "${_icon}" STREQUAL "kpilotDaemon"
|
||||||
|
AND NOT "${_icon}" STREQUAL "splash" )
|
||||||
|
list( APPEND _other_icons "${_icon}" )
|
||||||
|
endif( )
|
||||||
|
endforeach( )
|
||||||
|
|
||||||
|
if( _other_icons )
|
||||||
|
list( SORT _other_icons )
|
||||||
|
list( REMOVE_DUPLICATES _other_icons )
|
||||||
|
|
||||||
|
tde_install_icons( ${_other_icons} DESTINATION "${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons" )
|
||||||
|
endif( )
|
||||||
|
|
||||||
|
|
||||||
|
##### other data ################################
|
||||||
|
|
||||||
|
install( FILES kpilot-splash.png
|
||||||
|
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/pics
|
||||||
|
)
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
# build translations if some are already available
|
||||||
|
|
||||||
|
file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
|
||||||
|
if( _srcs )
|
||||||
|
tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
|
||||||
|
endif( )
|
Loading…
Reference in new issue