Migration to standard TDE CMake build system.

Add common cmake module.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 0ef4ca6d36)
r14.0.x
Slávek Banko 6 years ago
parent 6d8083e2a6
commit 7d4da1a03d
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

3
.gitmodules vendored

@ -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 @@
#################################################
#
# (C) 2019 Slávek Banko
# slavek.banko (AT) axis.cz
#
# Improvements and feedbacks are welcome
#
# This file is released under GPL >= 3
#
#################################################
cmake_minimum_required( VERSION 2.8 )
#### general package setup ######################
project( kpilot ) 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 )
if(EXISTS ${CMAKE_SOURCE_DIR}/CMakeOptions.txt)
include(${CMAKE_SOURCE_DIR}/CMakeOptions.txt)
else(EXISTS ${CMAKE_SOURCE_DIR}/CMakeOptions.txt)
message(FATAL_ERROR "CMakeOptions.txt not found! Run configure first.")
endif(EXISTS ${CMAKE_SOURCE_DIR}/CMakeOptions.txt)
# Search our own cmake modules path first #### include our cmake modules ##################
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros )
# 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( ##### setup install paths #######################
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" include( TDESetupPaths )
IMMEDIATE @ONLY) tde_setup_paths( )
ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") ##### optional stuff ############################
# Disallow in-source build option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
STRING(COMPARE EQUAL "${kpilot_SOURCE_DIR}" "${kpilot_BINARY_DIR}" insource) option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
if(insource)
MESSAGE(FATAL_ERROR
"KPilot requires an out of source build. Please create a separate build ##### user requested modules ####################
directory and run 'cmake path_to_kpilot [options]' there."
) option( BUILD_ALL "Build all" ON )
endif(insource) option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
find_package(Qt3) # find and setup Qt3 for this project
if (NOT QT_INCLUDE_DIR) ##### configure checks ##########################
MESSAGE(STATUS_ERROR "Qt3 package not found--assuming TQt4")
SET(QT_INCLUDE_DIR "/usr/include/qt4" CACHE PATH "" FORCE) include( ConfigureChecks.cmake )
endif (NOT QT_INCLUDE_DIR)
SET(QT_UIC_EXECUTABLE "/usr/bin/uic-tqt")
SET(QT_MOC_EXECUTABLE "/usr/bin/tmoc") ###### global compiler settings #################
find_package(KDE3 REQUIRED) # find and setup KDE3 for this project add_definitions( -DHAVE_CONFIG_H )
find_package(Pilotlink REQUIRED)
find_package(Mal) # see if mal is available, but it's not required set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
add_definitions( set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
${QT_DEFINITIONS}
${KDE3_DEFINITIONS}
-DQT_THREAD_SUPPORT ##### directories ###############################
)
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} ${QT_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( lib )
add_subdirectory( kpilot ) add_subdirectory( kpilot )
add_subdirectory( conduits ) add_subdirectory( conduits )
tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
STRING(COMPARE EQUAL "${ENABLE_TESTS}" "YES" buildtests) ##### write configure files #####################
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} .")
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 8349b4a317609218e2fee98c08af883f50f91c67

@ -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
${CMAKE_CURRENT_BINARY_DIR}
)
add_subdirectory( abbrowserconduit ) add_subdirectory( abbrowserconduit )
add_subdirectory( docconduit ) add_subdirectory( docconduit )
add_subdirectory( knotes ) add_subdirectory( knotes )
add_subdirectory( memofileconduit ) add_subdirectory( memofileconduit )
add_subdirectory( notepadconduit ) add_subdirectory( notepadconduit )
add_subdirectory(null)
add_subdirectory( popmail ) add_subdirectory( popmail )
add_subdirectory( sysinfoconduit ) add_subdirectory( sysinfoconduit )
add_subdirectory( timeconduit ) add_subdirectory( timeconduit )
FIND_PATH( HAVE_CALENDARLOCAL_H "libkcal/calendarlocal.h" ${KDE3_INCLUDE_DIR} )
IF (HAVE_CALENDARLOCAL_H)
add_subdirectory( vcalconduit ) 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_BINARY_DIR}
${CMAKE_CURRENT_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_BINARY_DIR}
${CMAKE_CURRENT_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 ${QT_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( include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/lib
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
) )
set(conduit_knotes_SRCS link_directories(
knotes-factory.cc ${TQT_LIBRARY_DIRS}
knotes-setup.cc
knotes-action.cc
)
set(conduit_knotes_UIS
setup_base.ui
) )
set(conduit_knotes_KCFGS tde_import( libkmime )
knotesconduitSettings.kcfgc tde_import( ktnef )
) tde_import( libkcal )
#set(conduit_knotes_STUBS
# KNotesIface.h
#)
#kde3_add_dcop_skels(conduit_knotes_SRCS ${conduit_knotes_STUBS}) ##### conduit_knotes (kpart) ####################
#kde3_add_dcop_stubs(conduit_knotes_SRCS ${conduit_knotes_STUBS})
kde3_add_kcfg_files(conduit_knotes_SRCS ${conduit_knotes_KCFGS}) tde_add_kpart( conduit_knotes AUTOMOC
trinity_add_ui_files(conduit_knotes_SRCS ${conduit_knotes_UIS}) SOURCES knotesconduitSettings.kcfgc knotes-factory.cc
trinity_automoc(${conduit_knotes_SRCS}) knotes-setup.cc knotes-action.cc setup_base.ui
LINK kpilot-shared tdeui-shared kcal-shared
add_library(conduit_knotes SHARED ${conduit_knotes_SRCS}) DESTINATION ${PLUGIN_INSTALL_DIR}
target_link_libraries(conduit_knotes kcal)
set_target_properties(conduit_knotes PROPERTIES
LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
PREFIX ""
) )
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,48 +1,34 @@
include_directories( include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${MAL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/lib
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
) )
set(conduit_mal_SRCS link_directories(
mal-factory.cc ${TQT_LIBRARY_DIRS}
mal-setup.cc
mal-conduit.cc
) )
set(conduit_mal_UIS
mal-setup_dialog.ui
)
set(conduit_mal_KCFGS ##### conduit_mal (kpart) #######################
malconduitSettings.kcfgc
)
kde3_add_kcfg_files(conduit_mal_SRCS ${conduit_mal_KCFGS}) tde_add_kpart( conduit_mal AUTOMOC
trinity_add_ui_files(conduit_mal_SRCS ${conduit_mal_UIS}) SOURCES malconduitSettings.kcfgc mal-setup_dialog.ui
trinity_automoc(${conduit_mal_SRCS}) mal-factory.cc mal-setup.cc mal-conduit.cc
add_library(conduit_mal SHARED ${conduit_mal_SRCS}) LINK kpilot-shared tdeui-shared
target_link_libraries(conduit_mal ${MAL_LIBRARY}) DESTINATION ${PLUGIN_INSTALL_DIR}
set_target_properties(
conduit_mal PROPERTIES
LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
PREFIX ""
INSTALL_RPATH "${MAL_LIBRARY}"
INSTALL_RPATH_USE_LINK_PATH true
) )
trinity_install_libtool_file(conduit_mal)
install( ##### other data ################################
TARGETS conduit_mal
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
)
install( install( FILES mal_conduit.desktop
FILES mal_conduit.desktop DESTINATION ${KDE3_SERVICES_DIR} DESTINATION ${SERVICES_INSTALL_DIR}
) )
install( install( FILES malconduit.kcfg
FILES malconduit.kcfg DESTINATION ${KDE3_KCFG_DIR} DESTINATION ${KCFG_INSTALL_DIR}
) )

@ -1,44 +1,34 @@
include_directories( include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_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_BINARY_DIR}
${CMAKE_CURRENT_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_BINARY_DIR}
${CMAKE_CURRENT_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_BINARY_DIR}
${CMAKE_CURRENT_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,50 +1,38 @@
include_directories( include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/lib
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
) )
set(conduit_sysinfo_SRCS link_directories(
sysinfo-setup.cc ${TQT_LIBRARY_DIRS}
sysinfo-factory.cc
sysinfo-conduit.cc
)
set(conduit_sysinfo_UIS
sysinfo-setup_dialog.ui
) )
set(conduit_sysinfo_KCFGS
sysinfoSettings.kcfgc
)
kde3_add_kcfg_files(conduit_sysinfo_SRCS ${conduit_sysinfo_KCFGS}) ##### conduit_sysinfo (kpart) ###################
trinity_add_ui_files(conduit_sysinfo_SRCS ${conduit_sysinfo_UIS})
trinity_automoc(${conduit_sysinfo_SRCS})
add_library(conduit_sysinfo SHARED ${conduit_sysinfo_SRCS})
set_target_properties( tde_add_kpart( conduit_sysinfo AUTOMOC
conduit_sysinfo PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR} SOURCES sysinfoSettings.kcfgc sysinfo-factory.cc sysinfo-setup.cc
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib sysinfo-conduit.cc sysinfo-setup_dialog.ui
PREFIX "" LINK kpilot-shared tdeui-shared tdeio-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
) )
trinity_install_libtool_file(conduit_sysinfo)
install( ##### other data ################################
TARGETS conduit_sysinfo
LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
)
install( install( FILES Template.html Template.txt
FILES sysinfo_conduit.desktop DESTINATION ${KDE3_SERVICES_DIR} DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/sysinfoconduit
) )
install( install( FILES sysinfo_conduit.desktop
FILES sysinfoSettings.kcfgc sysinfoconduit.kcfg DESTINATION ${SERVICES_INSTALL_DIR}
DESTINATION ${KDE3_KCFG_DIR}
) )
install( install( FILES sysinfoconduit.kcfg
FILES Template.html Template.txt DESTINATION ${KCFG_INSTALL_DIR}
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/apps/kpilot/sysinfoconduit
) )

@ -1,44 +1,34 @@
include_directories( include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/lib
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
) )
set(conduit_time_SRCS link_directories(
time-conduit.cc ${TQT_LIBRARY_DIRS}
time-factory.cc
time-setup.cc
)
set(conduit_time_UIS
time-setup_dialog.ui
) )
set(conduit_time_KCFGS
timeConduitSettings.kcfgc
)
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_BINARY_DIR}
${CMAKE_CURRENT_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}
) )

@ -1,24 +1,26 @@
#cmakedefine HAVE_STDINT_H #define VERSION "@VERSION@"
#cmakedefine HAVE_ALLOCA_H
#cmakedefine HAVE_SYS_TIME_H // Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine HAVE_SYS_STAT_H #cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
#cmakedefine HAVE_CFSETSPEED
#cmakedefine HAVE_STRDUP /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
#cmakedefine HAVE_SETENV significant byte first (like Motorola and SPARC, unlike Intel). */
#cmakedefine HAVE_UNSETENV #cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
#cmakedefine HAVE_USLEEP
#cmakedefine HAVE_RANDOM /* Define if you have strlcat */
#cmakedefine HAVE_PUTENV #cmakedefine HAVE_STRLCAT 1
#cmakedefine HAVE_SETEUID
#cmakedefine HAVE_MKSTEMPS /* Define if you have the strlcat prototype */
#cmakedefine HAVE_MKSTEMP #cmakedefine HAVE_STRLCAT_PROTO 1
#cmakedefine HAVE_MKDTEMP
#cmakedefine HAVE_REVOKE /* Define if you have strlcpy */
#cmakedefine HAVE_STRLCPY #cmakedefine HAVE_STRLCPY 1
#cmakedefine HAVE_STRLCAT
#cmakedefine HAVE_INET_ATON /* Define if you have the strlcpy prototype */
#cmakedefine HAVE_STRLCPY_PROTO 1
#if !defined(HAVE_STRLCAT)
/* Provide strlcat prototype if missing */
#if !defined(HAVE_STRLCAT_PROTO)
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
@ -28,9 +30,8 @@ unsigned long strlcat(char*, const char*, unsigned long);
#endif #endif
#endif #endif
/* Provide strlcpy prototype if missing */
#if !defined(HAVE_STRLCPY_PROTO)
#if !defined(HAVE_STRLCPY)
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
@ -39,5 +40,3 @@ unsigned long strlcpy(char*, const char*, unsigned long);
} }
#endif #endif
#endif #endif

@ -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 tde_add_executable( kpilot AUTOMOC
# runs whatever the command-line tells it to. SOURCES pilotDaemonDCOP.stub kpilotDCOP.skel loggerDCOP.skel kpilot.cc
# pilotComponent.cc logWidget.cc memoWidget.cc addressWidget.cc
set(kpilotTest_SRCS addressEditor.cc dbviewerWidget.cc dbFlagsEditor.cc dbFlagsEditor_base.ui
${settings_SRC} dbRecordEditor.cc dbAppInfoEditor.cc datebookWidget.cc todoWidget.cc
hotSync.cc todoEditor.cc todoEditor_base.ui fileInstaller.cc fileInstallWidget.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 ${QT_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 ${QT_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 listItems.cc
LINK tdecore-shared tdeui-shared tdeio-shared tdeutils-shared
kpilot-shared configuration-static
DESTINATION ${BIN_INSTALL_DIR}
) )
set(kpilot_UIS
dbFlagsEditor_base.ui
todoEditor_base.ui
)
trinity_add_ui_files(kpilot_SRCS ${kpilot_UIS}) ##### kpilotDaemon (executable) #################
# Talks to the daemon. Listens as itself.
kde3_add_dcop_skels(kpilot_SRCS loggerDCOP.h kpilotDCOP.h) tde_add_executable( kpilotDaemon AUTOMOC
kde3_add_dcop_stubs(kpilot_SRCS pilotDaemonDCOP.h) SOURCES pilotDaemonDCOP.skel kpilotDCOP.stub loggerDCOP.stub loggerDCOP.skel
trinity_automoc(${kpilot_SRCS}) pilotDaemon.cc logFile.cc hotSync.cc internalEditorAction.cc
add_executable(kpilot_bin ${kpilot_SRCS}) fileInstaller.cc
target_link_libraries(kpilot_bin ${QT_LIBRARIES} kpilot tdeutils tdeui tdeio) LINK tdecore-shared tdeui-shared tdeio-shared kpilot-shared
kpilot_rpath(kpilot_bin) configuration-static
set_target_properties(kpilot_bin PROPERTIES DESTINATION ${BIN_INSTALL_DIR}
OUTPUT_NAME kpilot
) )
######################### 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
)

@ -1,90 +1,47 @@
include(CheckIncludeFiles)
include(CheckFunctionExists)
check_include_files( stdint.h HAVE_STDINT_H ) include_directories(
check_include_files( alloca.h HAVE_ALLOCA_H ) ${CMAKE_BINARY_DIR}
check_include_files( "sys/time.h" HAVE_SYS_TIME_H ) ${CMAKE_CURRENT_BINARY_DIR}
check_include_files( "sys/stat.h" HAVE_SYS_STAT_H ) ${CMAKE_CURRENT_SOURCE_DIR}
check_function_exists( cfsetspeed HAVE_CFSETSPEED ) ${TDE_INCLUDE_DIR}
check_function_exists( strdup HAVE_STRDUP ) ${TQT_INCLUDE_DIRS}
check_function_exists( setenv HAVE_SETENV ) )
check_function_exists( unsetenv HAVE_UNSETENV )
check_function_exists( usleep HAVE_USLEEP )
check_function_exists( random HAVE_RANDOM )
check_function_exists( putenv HAVE_PUTENV )
check_function_exists( seteuid HAVE_SETEUID )
check_function_exists( mkstemps HAVE_MKSTEMPS )
check_function_exists( mkstemp HAVE_MKSTEMP )
check_function_exists( mkdtemp HAVE_MKDTEMP )
check_function_exists( revoke HAVE_REVOKE )
check_function_exists( strlcpy HAVE_STRLCPY )
check_function_exists( strlcat HAVE_STRLCAT )
check_function_exists( inet_aton HAVE_INET_ATON )
configure_file( link_directories(
${CMAKE_SOURCE_DIR}/config.h.cmake ${TQT_LIBRARY_DIRS}
${CMAKE_CURRENT_BINARY_DIR}/config.h
) )
include_directories(${CMAKE_CURRENT_BINARY_DIR}) tde_import( libkmime )
tde_import( ktnef )
tde_import( libkcal )
set(lib_SRCS
options.cc
plugin.cc
syncAction.cc
actions.cc
actionQueue.cc
idmapping.cc
idmapperxml.cc
idmapper.cc
kpilotlink.cc
kpilotdevicelink.cc
kpilotlocallink.cc
pilot.cc
pilotAppInfo.cc
pilotRecord.cc
pilotDatabase.cc
pilotLocalDatabase.cc
pilotSerialDatabase.cc
pilotMemo.cc
pilotAddress.cc
pilotDateEntry.cc
pilotTodoEntry.cc
)
trinity_automoc(${lib_SRCS}) ##### kpilot (shared) ###########################
kde3_add_kcfg_files(lib_SRCS kpilotlibSettings.kcfgc)
add_library(kpilot SHARED ${lib_SRCS})
target_link_libraries(kpilot ${PILOTLINK_LIBRARY} ${QT_LIBRARIES} tdeui tdeio)
kpilot_rpath(kpilot)
#---------- INSTALL -----------------------* tde_add_library( kpilot SHARED AUTOMOC
set(kpilotinclude_HEADERS SOURCES kpilotlibSettings.kcfgc options.cc plugin.cc syncAction.cc
kpilotlink.h kpilotlink.cc kpilotdevicelink.cc kpilotlocallink.cc actions.cc
kpilotdevicelink.h actionQueue.cc pilot.cc pilotAppInfo.cc pilotRecord.cc pilotDatabase.cc
kpilotlocallink.h pilotLocalDatabase.cc pilotSerialDatabase.cc pilotMemo.cc pilotAddress.cc
pilot.h pilotDateEntry.cc pilotTodoEntry.cc
pilotDatabase.h LINK tdeui-shared tdecore-shared tdeio-shared tdeabc-shared kcal-shared
pilotLinkVersion.h ${PILOTLINK_LIBRARIES}
pilotLocalDatabase.h VERSION 0.0.0
pilotRecord.h DESTINATION ${LIB_INSTALL_DIR}
pilotSerialDatabase.h
plugin.h
pluginfactory.h
syncAction.h
) )
install(
TARGETS kpilot
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)
install( ##### other data ################################
FILES ${kpilotinclude_HEADERS}
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/kpilot install( FILES kpilotlib.kcfg
DESTINATION ${KCFG_INSTALL_DIR}
) )
install( install(
FILES kpilotlib.kcfg DESTINATION ${KDE3_KCFG_DIR} FILES
kpilotlink.h kpilotlocallink.h kpilotdevicelink.h pilot.h pilotDatabase.h
pilotLinkVersion.h pilotLocalDatabase.h pilotRecord.h pilotSerialDatabase.h
plugin.h pluginfactory.h syncAction.h
DESTINATION
${INCLUDE_INSTALL_DIR}/${PROJECT_NAME}
) )

@ -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…
Cancel
Save