Commit 2411b4d2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: Use more target-centric cmake code

parent 7b48a41a
Pipeline #63073 passed with stage
in 3 minutes and 14 seconds
include(ECMMarkAsTest) include(ECMMarkAsTest)
find_package(Qt5Test ${QT_REQUIRED_VERSION} CONFIG REQUIRED) find_package(Qt5Test ${QT_REQUIRED_VERSION} CONFIG REQUIRED)
set(notestest_SRCS notestest.cpp) add_executable(notestest notestest.cpp)
add_executable(notestest ${notestest_SRCS})
add_test(NAME notestest COMMAND notestest) add_test(NAME notestest COMMAND notestest)
ecm_mark_as_test(notestest) ecm_mark_as_test(notestest)
target_link_libraries(notestest KF5AkonadiNotes KF5::Mime Qt::Test) target_link_libraries(notestest KF5AkonadiNotes KF5::Mime Qt::Test)
......
set(akonadinotes_LIB_SRC add_library(KF5AkonadiNotes)
add_library(KF5::KF5AkonadiNotes ALIAS KF5AkonadiNotes)
target_sources(KF5AkonadiNotes PRIVATE
noteutils.cpp noteutils.cpp
) )
ecm_qt_declare_logging_category(akonadinotes_LIB_SRC HEADER akonadi_notes_debug.h IDENTIFIER AKONADINOTES_LOG CATEGORY_NAME log_akonadi_notes) ecm_qt_declare_logging_category(KF5AkonadiNotes HEADER akonadi_notes_debug.h IDENTIFIER AKONADINOTES_LOG CATEGORY_NAME log_akonadi_notes)
add_library(KF5AkonadiNotes ${akonadinotes_LIB_SRC})
generate_export_header(KF5AkonadiNotes BASE_NAME akonadi-notes) generate_export_header(KF5AkonadiNotes BASE_NAME akonadi-notes)
add_library(KF5::KF5AkonadiNotes ALIAS KF5AkonadiNotes)
kde_target_enable_exceptions(KF5AkonadiNotes PUBLIC) kde_target_enable_exceptions(KF5AkonadiNotes PUBLIC)
......
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