Commit 260f9c01 authored by Allen Winter's avatar Allen Winter
Browse files

reformatting according to KDE style

parent 6df2563d
KDE4_NO_ENABLE_FINAL(kleopatra)
kde4_no_enable_final(kleopatra)
project(kleopatra)
option( KLEO_STATIC_KCMODULES "Build Kleopatra's KCMs into Kleopatra; don't install plugins" WINCE )
option(KLEO_STATIC_KCMODULES "Build Kleopatra's KCMs into Kleopatra; don't install plugins" WINCE)
include(MacroOptionalAddSubdirectory)
set( kleopatra_version 2.1.1 )
set( kleopatra_release FALSE )
if (NOT kleopatra_release)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.svn")
if ( NOT KdeSubversion_FOUND )
find_package( KdeSubversion )
endif ( NOT KdeSubversion_FOUND )
if ( KdeSubversion_FOUND )
KdeSubversion_WC_INFO( ${PROJECT_SOURCE_DIR} Kleopatra )
string( SUBSTRING "${Kleopatra_WC_LAST_CHANGED_DATE}" 0 10 Kleopatra_WC_LAST_CHANGED_DATE )
set( kleopatra_version "${kleopatra_version}-svn${Kleopatra_WC_REVISION} (${Kleopatra_WC_LAST_CHANGED_DATE})" )
endif ( KdeSubversion_FOUND )
endif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.svn")
endif (NOT kleopatra_release)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version-kleopatra.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/version-kleopatra.h )
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-kleopatra.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kleopatra.h )
set(kleopatra_version 2.1.1)
set(kleopatra_release FALSE)
if(NOT kleopatra_release)
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.svn")
if(NOT KdeSubversion_FOUND)
find_package(KdeSubversion)
endif()
if(KdeSubversion_FOUND)
kdesubversion_wc_info(${PROJECT_SOURCE_DIR} Kleopatra)
string(SUBSTRING "${Kleopatra_WC_LAST_CHANGED_DATE}" 0 10 Kleopatra_WC_LAST_CHANGED_DATE)
set(kleopatra_version "${kleopatra_version}-svn${Kleopatra_WC_REVISION} (${Kleopatra_WC_LAST_CHANGED_DATE})")
endif()
endif()
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version-kleopatra.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/version-kleopatra.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-kleopatra.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kleopatra.h)
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
......@@ -30,64 +31,59 @@ include_directories(
${CMAKE_SOURCE_DIR}/mobile/lib
${Boost_INCLUDE_DIR}
${QGPGME_INCLUDES}
${GPGME_INCLUDES} )
if (USABLE_ASSUAN_FOUND)
if (ASSUAN2_FOUND)
${GPGME_INCLUDES}
)
if(USABLE_ASSUAN_FOUND)
if(ASSUAN2_FOUND)
include_directories(${ASSUAN2_INCLUDES})
else (ASSUAN2_FOUND)
else()
include_directories(${ASSUAN_INCLUDES})
endif(ASSUAN2_FOUND)
endif(USABLE_ASSUAN_FOUND)
add_definitions ( -D_ASSUAN_ONLY_GPG_ERRORS )
endif()
endif()
add_definitions(-D_ASSUAN_ONLY_GPG_ERRORS)
if(NOT WINCE)
add_definitions ( -DQT_STL )
remove_definitions ( -DQT_NO_STL )
endif(NOT WINCE)
add_definitions(-DQT_STL)
remove_definitions(-DQT_NO_STL)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
if (GCC_IS_NEWER_THAN_4_3)
if (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-braces -Wno-parentheses -Wno-ignored-qualifiers" )
endif (CMAKE_COMPILER_IS_GNUCXX)
endif (GCC_IS_NEWER_THAN_4_3)
add_subdirectory( pics )
add_subdirectory( conf )
if ( USABLE_ASSUAN_FOUND AND BUILD_libkleopatraclient )
if(GCC_IS_NEWER_THAN_4_3)
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-braces -Wno-parentheses -Wno-ignored-qualifiers")
endif()
endif()
add_subdirectory(pics)
add_subdirectory(conf)
if(USABLE_ASSUAN_FOUND AND BUILD_libkleopatraclient)
# can't use macro_optional_add_subdirectory here, since it's split
# off into ConfigureChecks.cmake..
add_subdirectory( libkleopatraclient )
endif ( USABLE_ASSUAN_FOUND AND BUILD_libkleopatraclient )
add_subdirectory(libkleopatraclient)
endif()
if(NOT WINCE)
add_subdirectory( kgpgconf )
add_subdirectory( kwatchgnupg )
add_subdirectory( tests )
endif(NOT WINCE)
if ( WIN32 )
set( _kleopatra_extra_uiserver_SRCS
uiserver/uiserver_win.cpp
)
set( _kleopatra_extra_SRCS
utils/gnupg-registry.c
)
if (NOT WINCE)
set( _kleopatra_extra_SRCS
${_kleopatra_extra_SRCS}
selftest/registrycheck.cpp
)
endif (NOT WINCE)
else ( WIN32 )
set( _kleopatra_extra_uiserver_SRCS
uiserver/uiserver_unix.cpp
)
set( _kleopatra_extra_SRCS
)
endif ( WIN32 )
if ( USABLE_ASSUAN_FOUND )
add_definitions ( -DKLEOPATRACLIENT_NAMESPACE=KleopatraClientCopy -DKLEOPATRACLIENTCORE_EXPORT= )
add_subdirectory(kgpgconf)
add_subdirectory(kwatchgnupg)
add_subdirectory(tests)
endif()
if(WIN32)
set(_kleopatra_extra_uiserver_SRCS uiserver/uiserver_win.cpp)
set(_kleopatra_extra_SRCS utils/gnupg-registry.c)
if(NOT WINCE)
set(_kleopatra_extra_SRCS ${_kleopatra_extra_SRCS} selftest/registrycheck.cpp)
endif()
else()
set(_kleopatra_extra_uiserver_SRCS uiserver/uiserver_unix.cpp)
set(_kleopatra_extra_SRCS)
endif()
if(USABLE_ASSUAN_FOUND)
add_definitions(-DKLEOPATRACLIENT_NAMESPACE=KleopatraClientCopy -DKLEOPATRACLIENTCORE_EXPORT=)
set(_kleopatra_uiserver_SRCS
uiserver/sessiondata.cpp
uiserver/uiserver.cpp
......@@ -108,33 +104,31 @@ if ( USABLE_ASSUAN_FOUND )
libkleopatraclient/core/command.cpp
selftest/uiservercheck.cpp
)
if ( ASSUAN2_FOUND )
set( _kleopatra_uiserver_extra_libs ${ASSUAN2_LIBRARIES} )
else ( ASSUAN2_FOUND )
if ( WIN32 )
set( _kleopatra_uiserver_extra_libs ${ASSUAN_VANILLA_LIBRARIES} )
else ( WIN32 )
set( _kleopatra_uiserver_extra_libs ${ASSUAN_PTHREAD_LIBRARIES} )
endif( WIN32 )
endif ( ASSUAN2_FOUND )
if ( HAVE_GPG_ERR_SOURCE_KLEO )
add_definitions( -DGPG_ERR_SOURCE_DEFAULT=GPG_ERR_SOURCE_KLEO )
else( HAVE_GPG_ERR_SOURCE_KLEO )
add_definitions( -DGPG_ERR_SOURCE_DEFAULT=GPG_ERR_SOURCE_USER_1 )
endif( HAVE_GPG_ERR_SOURCE_KLEO )
else ( USABLE_ASSUAN_FOUND )
set(_kleopatra_uiserver_SRCS)
endif ( USABLE_ASSUAN_FOUND )
)
kde4_add_ui_files( _kleopatra_uiserver_SRCS
crypto/gui/signingcertificateselectionwidget.ui)
if(ASSUAN2_FOUND)
set(_kleopatra_uiserver_extra_libs ${ASSUAN2_LIBRARIES})
else()
if(WIN32)
set(_kleopatra_uiserver_extra_libs ${ASSUAN_VANILLA_LIBRARIES})
else()
set(_kleopatra_uiserver_extra_libs ${ASSUAN_PTHREAD_LIBRARIES})
endif()
endif()
if(HAVE_GPG_ERR_SOURCE_KLEO)
add_definitions(-DGPG_ERR_SOURCE_DEFAULT=GPG_ERR_SOURCE_KLEO)
else()
add_definitions(-DGPG_ERR_SOURCE_DEFAULT=GPG_ERR_SOURCE_USER_1)
endif()
else(USABLE_ASSUAN_FOUND)
set(_kleopatra_uiserver_SRCS)
endif(USABLE_ASSUAN_FOUND)
kde4_add_ui_files(_kleopatra_uiserver_SRCS crypto/gui/signingcertificateselectionwidget.ui)
set( _kleopatra_SRCS
set(_kleopatra_SRCS
utils/gnupg-helper.cpp
utils/filesystemwatcher.cpp
utils/filedialog.cpp
......@@ -273,7 +267,7 @@ set( _kleopatra_SRCS
commands/exportopenpgpcertstoservercommand.cpp
commands/adduseridcommand.cpp
commands/newcertificatecommand.cpp
${_kleopatra_uiserver_files}
conf/configuredialog.cpp
......@@ -284,40 +278,41 @@ set( _kleopatra_SRCS
aboutdata.cpp
systrayicon.cpp
kleopatraapplication.cpp
main.cpp )
if(NOT WINCE)
set(_kleopatra_SRCS
main.cpp
)
if(NOT WINCE)
set(_kleopatra_SRCS
${_kleopatra_SRCS}
smartcard/readerstatus.cpp
commands/setinitialpincommand.cpp
commands/learncardkeyscommand.cpp
commands/checksumcreatefilescommand.cpp
commands/checksumverifyfilescommand.cpp
commands/setinitialpincommand.cpp
commands/learncardkeyscommand.cpp
commands/checksumcreatefilescommand.cpp
commands/checksumverifyfilescommand.cpp
)
endif(NOT WINCE)
endif()
if(WINCE)
set(_kleopatra_SRCS
${_kleopatra_SRCS}
utils/qwizard.cpp
)
endif(WINCE)
endif()
if ( KLEO_STATIC_KCMODULES )
add_definitions( -DKLEO_STATIC_KCMODULES )
if(KLEO_STATIC_KCMODULES)
add_definitions(-DKLEO_STATIC_KCMODULES)
set(_kleopatra_extra_libs kcm_kleopatra)
else ( KLEO_STATIC_KCMODULES )
else()
set(_kleopatra_extra_libs)
endif ( KLEO_STATIC_KCMODULES )
endif()
if ( KLEO_MODEL_TEST )
add_definitions( -DKLEO_MODEL_TEST )
set( _kleopatra_SRCS ${_kleopatra_SRCS} models/modeltest.cpp )
endif ( KLEO_MODEL_TEST )
if(KLEO_MODEL_TEST)
add_definitions(-DKLEO_MODEL_TEST)
set(_kleopatra_SRCS ${_kleopatra_SRCS} models/modeltest.cpp)
endif()
kde4_add_ui_files( _kleopatra_SRCS
kde4_add_ui_files(_kleopatra_SRCS
dialogs/certificationoptionswidget.ui
dialogs/expirydialog.ui
dialogs/lookupcertificatesdialog.ui
......@@ -335,71 +330,83 @@ kde4_add_ui_files( _kleopatra_SRCS
newcertificatewizard/keycreationpage.ui
newcertificatewizard/resultpage.ui
newcertificatewizard/advancedsettingsdialog.ui
)
kde4_add_kcfg_files( _kleopatra_SRCS
)
kde4_add_kcfg_files(_kleopatra_SRCS
kcfg/tooltippreferences.kcfgc
kcfg/emailoperationspreferences.kcfgc
kcfg/smimevalidationpreferences.kcfgc
)
)
if (KDEPIM_ONLY_KLEO)
add_definitions( -DKDEPIM_ONLY_KLEO -DKDEPIM_EXPORT= )
set( _kleopatra_libkdepim_SRCS
if(KDEPIM_ONLY_KLEO)
add_definitions(-DKDEPIM_ONLY_KLEO -DKDEPIM_EXPORT=)
set(_kleopatra_libkdepim_SRCS
../libkdepim/progressmanager.cpp
../libkdepim/progressdialog.cpp
../libkdepim/overlaywidget.cpp
../libkdepim/ssllabel.cpp
../libkdepim/statusbarprogresswidget.cpp
)
set( _kleopatra_libkdepim_LIBS )
else(KDEPIM_ONLY_KLEO)
set( _kleopatra_libkdepim_SRCS )
set( _kleopatra_libkdepim_LIBS kdepim )
endif(KDEPIM_ONLY_KLEO)
if (KDEPIM_MOBILE_UI)
set( _kleopatra_uiserver_extra_libs ${_kleopatra_uiserver_extra_libs} kdepimmobileui )
set( _kleopatra_mainwindow_SRCS mainwindow_mobile.cpp )
else(KDEPIM_MOBILE_UI)
set( _kleopatra_mainwindow_SRCS mainwindow_desktop.cpp )
endif(KDEPIM_MOBILE_UI)
)
set(_kleopatra_libkdepim_LIBS)
else()
set(_kleopatra_libkdepim_SRCS)
set(_kleopatra_libkdepim_LIBS kdepim)
endif()
add_definitions ( -DKDE_DEFAULT_DEBUG_AREA=5151 )
if(KDEPIM_MOBILE_UI)
set(_kleopatra_uiserver_extra_libs ${_kleopatra_uiserver_extra_libs} kdepimmobileui)
set(_kleopatra_mainwindow_SRCS mainwindow_mobile.cpp)
else()
set(_kleopatra_mainwindow_SRCS mainwindow_desktop.cpp)
endif()
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5151)
kde4_add_app_icon(_kleopatra_mainwindow_SRCS "hi*-app-kleopatra.png")
kde4_add_executable(kleopatra_bin ${_kleopatra_SRCS} ${_kleopatra_mainwindow_SRCS} ${_kleopatra_uiserver_SRCS} ${_kleopatra_libkdepim_SRCS} )
set_target_properties(kleopatra_bin PROPERTIES OUTPUT_NAME kleopatra)
target_link_libraries(kleopatra_bin ${_kleopatra_extra_libs} kleo ${QGPGME_LIBRARIES} ${KDE4_KDEUI_LIBS} ${KDEPIMLIBS_KMIME_LIBS} ${KDE4_KCMUTILS_LIBS} ${_kleopatra_uiserver_extra_libs} ${_kleopatra_libkdepim_LIBS})
if (KDEPIM_MOBILE_UI)
kde4_add_executable(kleopatra_bin ${_kleopatra_SRCS} ${_kleopatra_mainwindow_SRCS} ${_kleopatra_uiserver_SRCS} ${_kleopatra_libkdepim_SRCS})
set_target_properties(kleopatra_bin PROPERTIES OUTPUT_NAME kleopatra)
target_link_libraries(kleopatra_bin
${_kleopatra_extra_libs}
kleo
${QGPGME_LIBRARIES}
${KDE4_KDEUI_LIBS}
${KDEPIMLIBS_KMIME_LIBS}
${KDE4_KCMUTILS_LIBS}
${_kleopatra_uiserver_extra_libs}
${_kleopatra_libkdepim_LIBS}
)
if(KDEPIM_MOBILE_UI)
target_link_libraries(kleopatra_bin ${QT_QTDECLARATIVE_LIBRARY})
endif(KDEPIM_MOBILE_UI)
endif()
if ( USABLE_ASSUAN_FOUND )
target_link_libraries(kleopatra_bin ${QT_QTNETWORK_LIBRARY})
ENDIF ( USABLE_ASSUAN_FOUND )
if(USABLE_ASSUAN_FOUND)
target_link_libraries(kleopatra_bin ${QT_QTNETWORK_LIBRARY})
endif()
install(TARGETS kleopatra_bin ${INSTALL_TARGETS_DEFAULT_ARGS})
install(
PROGRAMS kleopatra.desktop kleopatra_import.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)
install(
FILES kleopatra_signencryptfiles.desktop
kleopatra_signencryptfolders.desktop
kleopatra_decryptverifyfiles.desktop
kleopatra_decryptverifyfolders.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(FILES kleopatra.rc DESTINATION ${DATA_INSTALL_DIR}/kleopatra)
if(KDEPIM_MOBILE_UI)
install(
FILES qml/kleopatra-mobile.qml qml/KleopatraActions.qml
DESTINATION ${DATA_INSTALL_DIR}/kleopatra
)
endif()
########### install files ###############
install( PROGRAMS kleopatra.desktop
kleopatra_import.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kleopatra_signencryptfiles.desktop
kleopatra_signencryptfolders.desktop
kleopatra_decryptverifyfiles.desktop
kleopatra_decryptverifyfolders.desktop
DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES kleopatra.rc DESTINATION ${DATA_INSTALL_DIR}/kleopatra )
if ( KDEPIM_MOBILE_UI )
install( FILES qml/kleopatra-mobile.qml qml/KleopatraActions.qml DESTINATION ${DATA_INSTALL_DIR}/kleopatra )
endif ( KDEPIM_MOBILE_UI )
kde4_install_icons( ${ICON_INSTALL_DIR} )
kde4_install_icons(${ICON_INSTALL_DIR})
include_directories( ${CMAKE_SOURCE_DIR}/kleopatra ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
if ( KDEPIM_ONLY_KLEO )
add_definitions( -DKDEPIM_ONLY_KLEO )
set( _kcm_kleopatra_kleo_only_SRCS
../utils/kleo_kicondialog.cpp
)
else ( KDEPIM_ONLY_KLEO )
set( _kcm_kleopatra_extra_libs ${KDE4_KIO_LIBS} )
endif ( KDEPIM_ONLY_KLEO )
if ( BUILD_libkleopatraclient )
set( _kcm_kleopatra_libkleopatraclient_extra_SRCS
smimevalidationconfigurationwidget.cpp
smimevalidationconfigurationpage.cpp
cryptooperationsconfigwidget.cpp
cryptooperationsconfigpage.cpp
)
kde4_add_ui_files( _kcm_kleopatra_libkleopatraclient_extra_SRCS
smimevalidationconfigurationwidget.ui
cryptooperationsconfigwidget.ui
)
kde4_add_kcfg_files( _kcm_kleopatra_libkleopatraclient_extra_SRCS
${CMAKE_SOURCE_DIR}/kleopatra/kcfg/smimevalidationpreferences.kcfgc
)
set( _kcm_kleopatra_libkleopatraclient_extra_LIBS
kleopatraclientgui
)
set( _kcm_kleopatra_libkleopatraclient_extra_install_FILES
kleopatra_config_smimevalidation.desktop
kleopatra_config_cryptooperations.desktop
)
else ( BUILD_libkleopatraclient )
set( _kcm_kleopatra_libkleopatraclient_extra_SRCS
)
set( _kcm_kleopatra_libkleopatraclient_extra_LIBS
)
set( _kcm_kleopatra_libkleopatraclient_extra_install_FILES
)
endif ( BUILD_libkleopatraclient )
set(kcm_kleopatra_PART_SRCS
${_kcm_kleopatra_kleo_only_SRCS}
dirservconfigpage.cpp
appearanceconfigpage.cpp
appearanceconfigwidget.cpp
gnupgsystemconfigurationpage.cpp
${_kcm_kleopatra_libkleopatraclient_extra_SRCS}
)
add_definitions( -DKDE_DEFAULT_DEBUG_AREA=5152 )
kde4_add_ui_files( kcm_kleopatra_PART_SRCS
appearanceconfigwidget.ui
smimevalidationconfigurationwidget.ui
include_directories(${CMAKE_SOURCE_DIR}/kleopatra ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
if(KDEPIM_ONLY_KLEO)
add_definitions(-DKDEPIM_ONLY_KLEO)
set(_kcm_kleopatra_kleo_only_SRCS ../utils/kleo_kicondialog.cpp)
else()
set(_kcm_kleopatra_extra_libs ${KDE4_KIO_LIBS})
endif()
if(BUILD_libkleopatraclient)
set(_kcm_kleopatra_libkleopatraclient_extra_SRCS
smimevalidationconfigurationwidget.cpp
smimevalidationconfigurationpage.cpp
cryptooperationsconfigwidget.cpp
cryptooperationsconfigpage.cpp
)
kde4_add_kcfg_files( kcm_kleopatra_PART_SRCS
${CMAKE_SOURCE_DIR}/kleopatra/kcfg/tooltippreferences.kcfgc
${CMAKE_SOURCE_DIR}/kleopatra/kcfg/emailoperationspreferences.kcfgc
kde4_add_ui_files(_kcm_kleopatra_libkleopatraclient_extra_SRCS
smimevalidationconfigurationwidget.ui
cryptooperationsconfigwidget.ui
)
if ( KLEO_STATIC_KCMODULES )
kde4_add_plugin(kcm_kleopatra STATIC ${kcm_kleopatra_PART_SRCS})
else ( KLEO_STATIC_KCMODULES )
kde4_add_plugin(kcm_kleopatra ${kcm_kleopatra_PART_SRCS})
endif ( KLEO_STATIC_KCMODULES )
kde4_add_kcfg_files(_kcm_kleopatra_libkleopatraclient_extra_SRCS
${CMAKE_SOURCE_DIR}/kleopatra/kcfg/smimevalidationpreferences.kcfgc
)
set(_kcm_kleopatra_libkleopatraclient_extra_LIBS kleopatraclientgui)
set(_kcm_kleopatra_libkleopatraclient_extra_install_FILES
kleopatra_config_smimevalidation.desktop
kleopatra_config_cryptooperations.desktop
)
target_link_libraries(kcm_kleopatra ${KDE4_KDEUI_LIBS} ${KDE4_KCMUTILS_LIBS} kleo ${_kcm_kleopatra_extra_libs} ${_kcm_kleopatra_libkleopatraclient_extra_LIBS})
else(BUILD_libkleopatraclient)
set(_kcm_kleopatra_libkleopatraclient_extra_SRCS)
set(_kcm_kleopatra_libkleopatraclient_extra_LIBS)
set(_kcm_kleopatra_libkleopatraclient_extra_install_FILES)
if ( NOT KLEO_STATIC_KCMODULES )
install(TARGETS kcm_kleopatra DESTINATION ${PLUGIN_INSTALL_DIR})
endif ( NOT KLEO_STATIC_KCMODULES )
endif(BUILD_libkleopatraclient)
set(kcm_kleopatra_PART_SRCS
${_kcm_kleopatra_kleo_only_SRCS}
dirservconfigpage.cpp
appearanceconfigpage.cpp
appearanceconfigwidget.cpp
gnupgsystemconfigurationpage.cpp
${_kcm_kleopatra_libkleopatraclient_extra_SRCS}
)
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5152)
kde4_add_ui_files(kcm_kleopatra_PART_SRCS
appearanceconfigwidget.ui
smimevalidationconfigurationwidget.ui
)
kde4_add_kcfg_files(kcm_kleopatra_PART_SRCS
${CMAKE_SOURCE_DIR}/kleopatra/kcfg/tooltippreferences.kcfgc
${CMAKE_SOURCE_DIR}/kleopatra/kcfg/emailoperationspreferences.kcfgc
)
if(KLEO_STATIC_KCMODULES)
kde4_add_plugin(kcm_kleopatra STATIC ${kcm_kleopatra_PART_SRCS})
else()
kde4_add_plugin(kcm_kleopatra ${kcm_kleopatra_PART_SRCS})
endif()
target_link_libraries(kcm_kleopatra
${KDE4_KDEUI_LIBS}
${KDE4_KCMUTILS_LIBS}
kleo
${_kcm_kleopatra_extra_libs}
${_kcm_kleopatra_libkleopatraclient_extra_LIBS}
)
if(NOT KLEO_STATIC_KCMODULES)
install(TARGETS kcm_kleopatra DESTINATION ${PLUGIN_INSTALL_DIR})
endif()
########### install files ###############
install( FILES
install(FILES
kleopatra_config_dirserv.desktop
kleopatra_config_appear.desktop
kleopatra_config_gnupgsystem.desktop
${_kcm_kleopatra_libkleopatraclient_extra_install_FILES}
DESTINATION ${SERVICES_INSTALL_DIR})
DESTINATION ${SERVICES_INSTALL_DIR}
)
project(kgpgconf)
include_directories( ${CMAKE_SOURCE_DIR}/libkleo/backends/qgpgme )
add_definitions ( -D_ASSUAN_ONLY_GPG_ERRORS -DKDE_DEFAULT_DEBUG_AREA=5154 )
include_directories(${CMAKE_SOURCE_DIR}/libkleo/backends/qgpgme)
add_definitions(-D_ASSUAN_ONLY_GPG_ERRORS -DKDE_DEFAULT_DEBUG_AREA=5154)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
set(_kgpgconf_SRCS
configreader.cpp
configwriter.cpp
configuration.cpp
exception.cpp
main.cpp
mainwindow.cpp
configreader.cpp
configwriter.cpp
configuration.cpp
exception.cpp
main.cpp
mainwindow.cpp
)
kde4_add_ui_files( _kgpgconf_SRCS mainwidget.ui )
kde4_add_ui_files(_kgpgconf_SRCS mainwidget.ui)
# todo: more appropriate icon?
kde4_add_app_icon(_kgpgconf_SRCS "${KDE4_ICON_DIR}/oxygen/*/apps/preferences-desktop-cryptography.png")
kde4_add_executable(kgpgconf ${_kgpgconf_SRCS} )
target_link_libraries(kgpgconf ${QGPGME_LIBRARIES} ${KDE4_KDEUI_LIBS} )
kde4_add_executable(kgpgconf ${_kgpgconf_SRCS})
install(TARGETS kgpgconf ${INSTALL_TARGETS_DEFAULT_ARGS})
target_link_libraries(kgpgconf ${QGPGME_LIBRARIES} ${KDE4_KDEUI_LIBS})
install(TARGETS kgpgconf ${INSTALL_TARGETS_DEFAULT_ARGS})
########### next target ###############
set(kwatchgnupg_SRCS
../utils/kdlogtextwidget.cpp
../utils/gnupg-helper.cpp
......@@ -11,24 +7,26 @@ set(kwatchgnupg_SRCS
aboutdata.cpp
tray.cpp
main.cpp
)
</