Commit 0b5a9978 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

simplify cmake files

parent 452f18fd
Pipeline #157156 passed with stage
in 9 minutes and 15 seconds
# Executable only adds the main definition.
# Kate executable, just main.cpp & resource file & our large shared part in the static library
add_executable(kate-bin main.cpp data/kate.qrc)
target_link_libraries(kate-bin PRIVATE kate-lib)
......
add_executable(kwrite "")
find_package(
KF5 ${KF5_DEP_VERSION}
QUIET
REQUIRED
COMPONENTS
TextEditor
DBusAddons
Crash
OPTIONAL_COMPONENTS
Activities
)
target_link_libraries(
kwrite
PUBLIC
KF5::I18n
KF5::TextEditor
KF5::DBusAddons
KF5::Crash
kateshared
kate-lib
)
if(KF5Activities_FOUND)
target_link_libraries(kwrite PUBLIC KF5::Activities)
endif()
# KWrite executable, just main.cpp & resource file & our large shared part in the static library
add_executable(kwrite main.cpp data/kwrite.qrc)
target_link_libraries(kwrite PRIVATE kate-lib)
set(ICONS_PNG
${CMAKE_CURRENT_SOURCE_DIR}/icons/16-apps-kwrite.png
......@@ -42,13 +17,6 @@ set(ICONS_SVG ${CMAKE_CURRENT_SOURCE_DIR}/icons/sc-apps-kwrite.svgz)
ecm_add_app_icon(ICONS_SOURCES ICONS ${ICONS_PNG})
target_sources(kwrite PRIVATE ${ICONS_SOURCES})
target_sources(
kwrite
PRIVATE
main.cpp
data/kwrite.qrc
)
# See https://cmake.org/cmake/help/v3.15/prop_tgt/MACOSX_BUNDLE_INFO_PLIST.html
if(APPLE)
set_property(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment