diff options
author | gregory guy <g-gregory@gmx.fr> | 2018-12-05 12:40:07 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-09 19:50:50 +0100 |
commit | 404a34b9209547fd369b0c42562a92658693ff44 (patch) | |
tree | 9f88400ae16d11edae36f2728b950eb01a6295a7 /src | |
parent | c97baf19f57115aaea97ae3799a5f2f998fb0e45 (diff) | |
download | knowit-404a34b9209547fd369b0c42562a92658693ff44.tar.gz knowit-404a34b9209547fd369b0c42562a92658693ff44.zip |
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
(cherry picked from commit 9004ae5427c4b939d7fbf21a7ab275181d534175)
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 61 | ||||
-rw-r--r-- | src/knowit.cpp | 1 | ||||
-rw-r--r-- | src/knowit.desktop | 2 | ||||
-rw-r--r-- | src/knowitapp.cpp | 2 | ||||
-rw-r--r-- | src/knowitchooser.cpp | 2 | ||||
-rw-r--r-- | src/knowitedit.cpp | 1 | ||||
-rw-r--r-- | src/knowitlink.cpp | 1 | ||||
-rw-r--r-- | src/knowitlinks.cpp | 2 | ||||
-rw-r--r-- | src/knowitpref.cpp | 2 | ||||
-rw-r--r-- | src/knowittree.cpp | 2 | ||||
-rw-r--r-- | src/x-knowit.desktop | 2 |
11 files changed, 74 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..816216c --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,61 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### knowit (executable) + +tde_add_executable( ${PROJECT_NAME} AUTOMOC + + SOURCES + main.cpp + knowit.cpp + notes.cpp + knowittree.cpp + knowitlinks.cpp + knowittray.cpp + knowitpref.cpp + knowitlink.cpp + knowitapp.cpp + knowitchooser.cpp + knowitedit.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + tdeprint-shared + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### icons + +tde_install_icons( ${PROJECT_NAME} ) + + +##### other data + +install( + FILES knowitui.rc tips + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES ${PROJECT_NAME}.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( + FILES x-${PROJECT_NAME}.desktop + DESTINATION ${MIME_INSTALL_DIR}/application +) diff --git a/src/knowit.cpp b/src/knowit.cpp index a9a2853..730b2af 100644 --- a/src/knowit.cpp +++ b/src/knowit.cpp @@ -1326,3 +1326,4 @@ void Knowit::slotLinkCopy() kapp->clipboard()->setText(link.link, TQClipboard::Selection); } +#include "knowit.moc" diff --git a/src/knowit.desktop b/src/knowit.desktop index 7ab745d..43e6544 100644 --- a/src/knowit.desktop +++ b/src/knowit.desktop @@ -3,7 +3,7 @@ Encoding=UTF-8 Type=Application Exec=knowit -caption "%c" %i %m MimeType=application/x-knowit -Icon=knowit +Icon=desktop X-DocPath=knowit/index.html Comment= Comment[de]= diff --git a/src/knowitapp.cpp b/src/knowitapp.cpp index 16cc68d..8796d94 100644 --- a/src/knowitapp.cpp +++ b/src/knowitapp.cpp @@ -31,3 +31,5 @@ void KnowitApplication::commitData(TQSessionManager& sm) mcloseByLogout = true; KUniqueApplication::commitData(sm); } + +#include "knowitapp.moc" diff --git a/src/knowitchooser.cpp b/src/knowitchooser.cpp index 639b943..45c8035 100644 --- a/src/knowitchooser.cpp +++ b/src/knowitchooser.cpp @@ -83,3 +83,5 @@ void KnowitChooser::setChoice(int flags) rule->setChecked(flags & AddRule); style->setChecked(flags & Style); } + +#include "knowitchooser.moc" diff --git a/src/knowitedit.cpp b/src/knowitedit.cpp index 11f2a29..748759d 100644 --- a/src/knowitedit.cpp +++ b/src/knowitedit.cpp @@ -64,3 +64,4 @@ void KnowitEdit::contentsDropEvent(TQDropEvent* event) else TQTextEdit::contentsDropEvent(event); } +#include "knowitedit.moc" diff --git a/src/knowitlink.cpp b/src/knowitlink.cpp index 863f776..d333c8f 100644 --- a/src/knowitlink.cpp +++ b/src/knowitlink.cpp @@ -99,3 +99,4 @@ void KnowitLinkDialog::slotTypeChanged(int index) browse->setEnabled(!index); } +#include "knowitlink.moc" diff --git a/src/knowitlinks.cpp b/src/knowitlinks.cpp index c2054e8..2114715 100644 --- a/src/knowitlinks.cpp +++ b/src/knowitlinks.cpp @@ -54,3 +54,5 @@ void KnowitLinks::keyPressEvent(TQKeyEvent* e) } else TDEListBox::keyPressEvent(e); } + +#include "knowitlinks.moc" diff --git a/src/knowitpref.cpp b/src/knowitpref.cpp index bbc4b97..d844658 100644 --- a/src/knowitpref.cpp +++ b/src/knowitpref.cpp @@ -389,4 +389,4 @@ void KnowitPreferences::slotUpdateDatePreview() insertDatePreview->setText(str); } - +#include "knowitpref.moc" diff --git a/src/knowittree.cpp b/src/knowittree.cpp index 436da5f..1c66c2b 100644 --- a/src/knowittree.cpp +++ b/src/knowittree.cpp @@ -142,5 +142,5 @@ void KnowitTree::slotItemRight() setCurrentItem(currentItem()->firstChild()); } - +#include "knowittree.moc" diff --git a/src/x-knowit.desktop b/src/x-knowit.desktop index e060ac5..0545753 100644 --- a/src/x-knowit.desktop +++ b/src/x-knowit.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Comment=KnowIt -Icon=knowit +Icon=desktop MimeType=application/x-knowit Patterns=*.kno; Type=MimeType |