Add EXCLUDED_FILES variable

When adding source files to the _FILES variables conditionally
those are so far not being formatted or translated. Adding
these files at least to the EXCLUDED_FILES will fix this.

Replaces DOC_ONLY_FILES which served the same purpose but was
limited to documentation.
This commit is contained in:
Martchus 2019-07-13 14:01:52 +02:00
parent c1746c4302
commit d3c9653b9e
2 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,7 @@ if (DBUS_NOTIFICATIONS)
list(APPEND META_PUBLIC_COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_SUPPORT_DBUS_NOTIFICATIONS)
message(STATUS "D-Bus notifications enabled")
else ()
list(APPEND DOC_ONLY_FILES ${DBUS_NOTIFICATIONS_FILE_NAME}.h ${DBUS_NOTIFICATIONS_FILE_NAME}.cpp)
list(APPEND EXCLUDED_FILES ${DBUS_NOTIFICATIONS_FILE_NAME}.h ${DBUS_NOTIFICATIONS_FILE_NAME}.cpp)
message(STATUS "D-Bus notifications disabled")
endif ()

View File

@ -282,6 +282,7 @@ if (ENABLE_QT_TRANSLATIONS AND TS_FILES)
${QML_HEADER_FILES}
${QML_SRC_FILES}
${QML_RES_FILES}
${EXCLUDED_FILES}
${TS_FILES}
OPTIONS
${LUPDATE_OPTIONS})