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:
parent
c1746c4302
commit
d3c9653b9e
|
@ -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 ()
|
||||
|
||||
|
|
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue