Warning, /utilities/basket/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include_directories(${GPGME_INCLUDES})
0002 
0003 ########### next target ###############
0004 
0005 set(libbasket_SRCS
0006     aboutdata.cpp
0007     archive.cpp
0008     backgroundmanager.cpp
0009     backup.cpp
0010     basketfactory.cpp
0011     basketlistview.cpp
0012     basketproperties.cpp
0013     basketscene.cpp
0014     basketstatusbar.cpp
0015     basketview.cpp
0016     bnpview.cpp
0017     colorpicker.cpp
0018     common.cpp
0019     debugwindow.cpp
0020     decoratedbasket.cpp
0021     file_metadata.cpp
0022     filter.cpp
0023     focusedwidgets.cpp
0024     formatimporter.cpp
0025     global.cpp
0026     gitwrapper.cpp
0027     htmlexporter.cpp
0028     history.cpp
0029     kcolorcombo2.cpp
0030     kgpgme.cpp
0031     linklabel.cpp
0032     newbasketdialog.cpp
0033     note.cpp
0034     notecontent.cpp
0035     notedrag.cpp
0036     noteedit.cpp
0037     notefactory.cpp
0038     noteselection.cpp
0039     password.cpp
0040     regiongrabber.cpp
0041     settings.cpp
0042     settings_versionsync.cpp
0043     softwareimporters.cpp
0044         tag.cpp
0045     tagsedit.cpp
0046     tools.cpp
0047     variouswidgets.cpp
0048     xmlwork.cpp
0049 )
0050 
0051 set(PIMO_CPP "") # One of the generated files
0052 
0053 ki18n_wrap_ui(basket_FORM_HDRS passwordlayout.ui basketproperties.ui settings_versionsync.ui)
0054 
0055 qt5_add_dbus_adaptor(libbasket_SRCS org.kde.basket.BNPView.xml bnpview.h BNPView)
0056 
0057 qt5_add_resources(basket_RESOURCES ../basket.qrc)
0058 
0059 add_library(LibBasket SHARED ${libbasket_SRCS} ${basket_FORM_HDRS} ${basket_RESOURCES})
0060 
0061 target_link_libraries(LibBasket
0062     ${PHONON_LIBRARY}
0063     ${GPGME_VANILLA_LIBRARIES}
0064     KF5::Archive
0065     KF5::ConfigWidgets
0066     KF5::CoreAddons
0067     KF5::Crash
0068     KF5::DBusAddons
0069     KF5::FileMetaData
0070     KF5::GlobalAccel
0071     KF5::GuiAddons
0072     KF5::I18n
0073     KF5::IconThemes
0074     KF5::KCMUtils
0075     KF5::KIOWidgets
0076     KF5::Notifications
0077     KF5::Parts
0078     KF5::TextWidgets
0079     KF5::WindowSystem
0080     KF5::XmlGui
0081 )
0082 
0083 set_target_properties(LibBasket PROPERTIES
0084     VERSION
0085         ${Qt5Core_VERSION}
0086     SOVERSION
0087         ${Qt5Core_VERSION_MAJOR}
0088 )
0089 
0090 install(TARGETS LibBasket DESTINATION ${LIB_INSTALL_DIR})
0091 
0092 # Add unit tests after all variables have been set.
0093 # If we save target_link_libraries to a variable, we can reuse it too
0094 
0095 if (BUILD_TESTING)
0096     add_subdirectory(tests)
0097 endif ()
0098 
0099 ########### next target ###############
0100 
0101 set(basket_SRCS main.cpp mainwindow.cpp application.cpp)
0102 
0103 add_executable(basket ${basket_SRCS})
0104 target_link_libraries(basket LibBasket)
0105 
0106 if (LIBGIT2_FOUND)
0107     target_link_libraries(LibBasket ${LIBGIT2_LIBRARIES})
0108     target_link_libraries(basket ${LIBGIT2_LIBRARIES})
0109 endif()
0110 
0111 install(TARGETS basket DESTINATION ${BIN_INSTALL_DIR})
0112 
0113 add_library(basket_config_general MODULE kcm_basket/basket_config_general.cpp)
0114 kcoreaddons_desktop_to_json(LibBasket "kcm_basket/basket_config_general.desktop" SERVICE_TYPES kcmodule.desktop)
0115 target_link_libraries(basket_config_general LibBasket)
0116 install(TARGETS basket_config_general DESTINATION ${PLUGIN_INSTALL_DIR}/pim/kcms/basket/)
0117 
0118 add_library(basket_config_baskets MODULE kcm_basket/basket_config_baskets.cpp)
0119 kcoreaddons_desktop_to_json(LibBasket "kcm_basket/basket_config_baskets.desktop" SERVICE_TYPES kcmodule.desktop)
0120 target_link_libraries(basket_config_baskets LibBasket)
0121 install(TARGETS basket_config_baskets DESTINATION ${PLUGIN_INSTALL_DIR}/pim/kcms/basket/)
0122 
0123 add_library(basket_config_new_notes MODULE kcm_basket/basket_config_new_notes.cpp)
0124 kcoreaddons_desktop_to_json(LibBasket "kcm_basket/basket_config_new_notes.desktop" SERVICE_TYPES kcmodule.desktop)
0125 target_link_libraries(basket_config_new_notes LibBasket)
0126 install(TARGETS basket_config_new_notes DESTINATION ${PLUGIN_INSTALL_DIR}/pim/kcms/basket/)
0127 
0128 add_library(basket_config_notes_appearance MODULE kcm_basket/basket_config_notes_appearance.cpp)
0129 kcoreaddons_desktop_to_json(LibBasket "kcm_basket/basket_config_notes_appearance.desktop" SERVICE_TYPES kcmodule.desktop)
0130 target_link_libraries(basket_config_notes_appearance LibBasket)
0131 install(TARGETS basket_config_notes_appearance DESTINATION ${PLUGIN_INSTALL_DIR}/pim/kcms/basket/)
0132 
0133 add_library(basket_config_apps MODULE kcm_basket/basket_config_apps.cpp)
0134 kcoreaddons_desktop_to_json(LibBasket "kcm_basket/basket_config_apps.desktop" SERVICE_TYPES kcmodule.desktop)
0135 target_link_libraries(basket_config_apps LibBasket)
0136 install(TARGETS basket_config_apps DESTINATION ${PLUGIN_INSTALL_DIR}/pim/kcms/basket/)
0137 
0138 add_library(basket_config_version_sync MODULE kcm_basket/basket_config_version_sync.cpp)
0139 kcoreaddons_desktop_to_json(LibBasket "kcm_basket/basket_config_version_sync.desktop" SERVICE_TYPES kcmodule.desktop)
0140 target_link_libraries(basket_config_version_sync LibBasket)
0141 install(TARGETS basket_config_version_sync DESTINATION ${PLUGIN_INSTALL_DIR}/pim/kcms/basket/)
0142 
0143 set(DESKTOP_FILES
0144     kcm_basket/basket_config_general.desktop
0145     kcm_basket/basket_config_baskets.desktop
0146     kcm_basket/basket_config_new_notes.desktop
0147     kcm_basket/basket_config_notes_appearance.desktop
0148     kcm_basket/basket_config_apps.desktop
0149     kcm_basket/basket_config_version_sync.desktop
0150 )
0151 install(FILES ${DESKTOP_FILES} DESTINATION ${SERVICES_INSTALL_DIR})
0152 
0153 
0154 install(FILES org.kde.basket.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
0155 install(FILES org.kde.basket.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0156 install(FILES basketui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/basket)
0157