Commit 33f59058 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use more target-centric cmake code

GIT_SILENT
parent 19b1d625
......@@ -2,21 +2,20 @@ add_definitions(-DTRANSLATION_DOMAIN=\"markdownpart\")
configure_file(markdownpart.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/markdownpart.desktop @ONLY)
set(markdownpart_SRCS
add_library(markdownpart MODULE)
target_sources(markdownpart PRIVATE
searchtoolbar.cpp
markdownview.cpp
markdownpartfactory.cpp
markdownpart.cpp
markdownbrowserextension.cpp
)
ki18n_wrap_ui(markdownpart_SRCS searchtoolbar.ui)
qt5_add_resources(markdownpart_SRCS
markdownpart.qrc
)
add_library(markdownpart MODULE ${markdownpart_SRCS})
ki18n_wrap_ui(markdownpart searchtoolbar.ui)
kcoreaddons_desktop_to_json(markdownpart ${CMAKE_CURRENT_BINARY_DIR}/markdownpart.desktop)
target_link_libraries(markdownpart
......
Markdown is supported
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