Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 56 | set(cantor_PART_SRCS | |||
---|---|---|---|---|---|
57 | cantor_part.cpp | 57 | cantor_part.cpp | ||
58 | worksheet.cpp | 58 | worksheet.cpp | ||
59 | worksheetview.cpp | 59 | worksheetview.cpp | ||
60 | worksheetentry.cpp | 60 | worksheetentry.cpp | ||
61 | worksheettextitem.cpp | 61 | worksheettextitem.cpp | ||
62 | worksheetimageitem.cpp | 62 | worksheetimageitem.cpp | ||
63 | commandentry.cpp | 63 | commandentry.cpp | ||
64 | textentry.cpp | 64 | textentry.cpp | ||
65 | markdownentry.cpp | ||||
65 | pagebreakentry.cpp | 66 | pagebreakentry.cpp | ||
66 | imageentry.cpp | 67 | imageentry.cpp | ||
67 | latexentry.cpp | 68 | latexentry.cpp | ||
68 | placeholderentry.cpp | 69 | placeholderentry.cpp | ||
69 | worksheetcursor.cpp | 70 | worksheetcursor.cpp | ||
70 | searchbar.cpp | 71 | searchbar.cpp | ||
71 | actionbar.cpp | 72 | actionbar.cpp | ||
72 | worksheettoolbutton.cpp | 73 | worksheettoolbutton.cpp | ||
Show All 22 Lines | 93 | kcoreaddons_add_plugin(cantorpart | |||
95 | INSTALL_NAMESPACE ".") | 96 | INSTALL_NAMESPACE ".") | ||
96 | 97 | | |||
97 | set_target_properties(cantorpart PROPERTIES PREFIX "${CMAKE_SHARED_LIBRARY_PREFIX}") | 98 | set_target_properties(cantorpart PROPERTIES PREFIX "${CMAKE_SHARED_LIBRARY_PREFIX}") | ||
98 | 99 | | |||
99 | target_link_libraries(cantorpart KF5::Parts KF5::NewStuff | 100 | target_link_libraries(cantorpart KF5::Parts KF5::NewStuff | ||
100 | KF5::TextEditor ${Qt5XmlPatterns_LIBRARIES} | 101 | KF5::TextEditor ${Qt5XmlPatterns_LIBRARIES} | ||
101 | KF5::KIOCore KF5::KIOFileWidgets KF5::KIOWidgets | 102 | KF5::KIOCore KF5::KIOFileWidgets KF5::KIOWidgets | ||
102 | Qt5::PrintSupport cantorlibs cantor_config ) | 103 | Qt5::PrintSupport cantorlibs cantor_config ) | ||
103 | if(LIBSPECTRE_FOUND) | 104 | if(LIBSPECTRE_FOUND) | ||
pino: Extra whitespace change. | |||||
104 | target_link_libraries(cantorpart ${LIBSPECTRE_LIBRARY}) | 105 | target_link_libraries(cantorpart ${LIBSPECTRE_LIBRARY}) | ||
105 | endif(LIBSPECTRE_FOUND) | 106 | endif(LIBSPECTRE_FOUND) | ||
107 | if(Discount_FOUND) | ||||
108 | target_link_libraries(cantorpart Discount::Lib) | ||||
FindDiscount.cmake creates a Discount::Lib imported library that you can use, and it's even better to do so: it makes sure the target has both the right include directories and the right libraries needed. pino: FindDiscount.cmake creates a `Discount::Lib` imported library that you can use, and it's even… | |||||
109 | endif(Discount_FOUND) | ||||
106 | 110 | | |||
107 | install( FILES cantor_part.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/cantor ) | 111 | install( FILES cantor_part.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/cantor ) | ||
108 | install( FILES cantor_scripteditor.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/cantor ) | 112 | install( FILES cantor_scripteditor.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/cantor ) |
Extra whitespace change.