Commit 1a6e5a03 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: Use more target-centric cmake code

parent 81a42829
add_definitions(-DTRANSLATION_DOMAIN=\"kteatime\")
add_executable(kteatime)
set(kteatime_SRCS settings.cpp timeedit.cpp toplevel.cpp tealistmodel.cpp tea.cpp main.cpp )
target_sources(kteatime PRIVATE settings.cpp timeedit.cpp toplevel.cpp tealistmodel.cpp tea.cpp main.cpp )
set_property(SOURCE main.cpp APPEND PROPERTY COMPILE_DEFINITIONS "KTEATIME_VERSION=\"${kteatime_VERSION}\"")
ki18n_wrap_ui(kteatime_SRCS settings.ui timeedit.ui)
ki18n_wrap_ui(kteatime settings.ui timeedit.ui)
add_executable(kteatime ${kteatime_SRCS})
target_link_libraries(kteatime
KF5::ConfigCore
KF5::ConfigGui
......
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