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
a841f1932f
commit
d318585fb2
|
@ -274,7 +274,8 @@ set(FORMATABLE_FILES
|
||||||
${WIDGETS_HEADER_FILES}
|
${WIDGETS_HEADER_FILES}
|
||||||
${WIDGETS_SRC_FILES}
|
${WIDGETS_SRC_FILES}
|
||||||
${QML_HEADER_FILES}
|
${QML_HEADER_FILES}
|
||||||
${QML_SRC_FILES})
|
${QML_SRC_FILES}
|
||||||
|
${EXCLUDED_FILES})
|
||||||
# only format C/C++ files (and not eg. QML files)
|
# only format C/C++ files (and not eg. QML files)
|
||||||
if (FORMATABLE_FILES)
|
if (FORMATABLE_FILES)
|
||||||
list(FILTER
|
list(FILTER
|
||||||
|
|
|
@ -44,8 +44,8 @@ set(DOXY_INPUT_FILES
|
||||||
${WIDGETS_SRC_FILES}
|
${WIDGETS_SRC_FILES}
|
||||||
${QML_HEADER_FILES}
|
${QML_HEADER_FILES}
|
||||||
${QML_SRC_FILES}
|
${QML_SRC_FILES}
|
||||||
${DOC_FILES}
|
${EXCLUDED_FILES}
|
||||||
${DOC_ONLY_FILES})
|
${DOC_FILES})
|
||||||
set(DOXY_PATH_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/")
|
set(DOXY_PATH_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/")
|
||||||
list(GET DOC_FILES 0 DOXY_MAIN_PAGE_FILE)
|
list(GET DOC_FILES 0 DOXY_MAIN_PAGE_FILE)
|
||||||
set(DOXY_MAIN_PAGE_FILE "${DOXY_PATH_PREFIX}${DOXY_MAIN_PAGE_FILE}")
|
set(DOXY_MAIN_PAGE_FILE "${DOXY_PATH_PREFIX}${DOXY_MAIN_PAGE_FILE}")
|
||||||
|
|
|
@ -227,9 +227,13 @@ and qtutilities.
|
||||||
only required for Qt Widgets GUI
|
only required for Qt Widgets GUI
|
||||||
* `QML_HEADER_FILES`/`QML_SRC_FILES`/`QML_RES_FILES`: specifies C++
|
* `QML_HEADER_FILES`/`QML_SRC_FILES`/`QML_RES_FILES`: specifies C++
|
||||||
header/source files and Qt resouce files only required for Qt Quick GUI
|
header/source files and Qt resouce files only required for Qt Quick GUI
|
||||||
|
* `EXCLUDED_FILES`: specifies C++ files which are part of the project (and therefore
|
||||||
|
should be formatted by the `tidy` target, added to the documentation and considered
|
||||||
|
for translations) but are excluded from the actual build; when adding files
|
||||||
|
conditionally to the other `_FILES` variables, be sure to add them at least
|
||||||
|
to `EXCLUDED_FILES`
|
||||||
* `DOC_FILES`: additional markdown files to be inlcuded in the documentation
|
* `DOC_FILES`: additional markdown files to be inlcuded in the documentation
|
||||||
created via Doxygen; the first file is used as the main page
|
created via Doxygen; the first file is used as the main page
|
||||||
* `DOC_ONLY_FILES`: specifies documentation-only files
|
|
||||||
* `REQUIRED_ICONS`: names of the icons required by the application and the
|
* `REQUIRED_ICONS`: names of the icons required by the application and the
|
||||||
used libraries (can be generated with
|
used libraries (can be generated with
|
||||||
[findicons](https://github.com/Martchus/findicons))
|
[findicons](https://github.com/Martchus/findicons))
|
||||||
|
|
Loading…
Reference in New Issue