From 2578c13462d6ff5f6da401c62b24c461b3b445ca Mon Sep 17 00:00:00 2001 From: gregory guy Date: Tue, 25 Feb 2020 15:05:47 +0100 Subject: Conversion to the cmake building system. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gregory guy Signed-off-by: Slávek Banko --- src/CMakeLists.txt | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 src/CMakeLists.txt (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..5a66cf3 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,138 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${X11_INCLUDE_DIR} + ${GPGME_INCLUDE_DIRS} + ${ARTS_INCLUDE_DIRS} + ${LIBART_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### basketcommon (shared) + +tde_add_library( basketcommon SHARED AUTOMOC + + SOURCES + kicondialogui.ui passwordlayout.ui basketdcopiface.skel + archive.cpp bnpview.cpp settings.cpp basket.cpp + basketproperties.cpp linklabel.cpp variouswidgets.cpp + xmlwork.cpp keyboard.cpp global.cpp exporterdialog.cpp + htmlexporter.cpp notefactory.cpp softwareimporters.cpp + focusedwidgets.cpp popupmenu.cpp basketfactory.cpp + tag.cpp qeffects.cpp kcolorcombo2.cpp newbasketdialog.cpp + tagsedit.cpp formatimporter.cpp note.cpp notecontent.cpp + notedrag.cpp noteedit.cpp filter.cpp tools.cpp + backgroundmanager.cpp regiongrabber.cpp kicondialog.cpp + kiconcanvas.cpp kgpgme.cpp likeback.cpp crashhandler.cpp + password.cpp colorpicker.cpp basketlistview.cpp + debugwindow.cpp systemtray.cpp aboutdata.cpp + basketstatusbar.cpp clickablelabel.cpp backup.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + tdeparts-shared + kjs-shared + ${ARTSC_LIBRARIES} + ${ARTSKDE_LIBRARIES} + ${GPGME_LIBRARIES} + + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### basket (executable) + +tde_add_executable( ${PROJECT_NAME} AUTOMOC + + SOURCES + main.cpp + mainwindow.cpp + application.cpp + LINK + tdecore-shared + tdeui-shared + tdeutils-shared + kjs-shared + ${ARTSC_LIBRARIES} + ${ARTSKDE_LIBRARIES} + basketcommon-shared + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### libbasketpart (kpart) + +tde_add_kpart( libbasketpart MODULE AUTOMOC + + SOURCES + basket_part.cpp + LINK + tdecore-shared + tdeui-shared + tdeparts-shared + kjs-shared + ${ARTSC_LIBRARIES} + ${ARTSKDE_LIBRARIES} + basketcommon-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcm_basket (kpart) + +tde_add_kpart( kcm_basket MODULE AUTOMOC + + SOURCES + kcm_basket.cpp + LINK + tdecore-shared + tdeui-shared + kjs-shared + ${ARTSC_LIBRARIES} + ${ARTSKDE_LIBRARIES} + basketcommon-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### icons + +tde_install_icons() + + +##### other data + +install( + FILES basketui.rc basket_part.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES + basket_part.desktop + basket_config_general.desktop + basket_config_baskets.desktop + basket_config_new_notes.desktop + basket_config_notes_appearance.desktop + basket_config_apps.desktop + + DESTINATION ${SERVICES_INSTALL_DIR} +) + +install( + FILES ${PROJECT_NAME}.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) -- cgit v1.2.1