Cosmin Truta a7a8faeefa [libpng16] style: Add a cmake-format config file and satisfy cmake-lint
Introduce CMake file linting, based on the cmakelang project by
Josh Bialkowski (@cheshirekow).

Fix various style issues in the CMake files:
 * Add the missing copyright header to PNGConfig.cmake.
 * Resolve a "missing docstring" warning raised by cmake-lint.
 * Rewrite all docstrings in the style of CMake's own documentation.
 * Fix whitespace inconsistencies.

References:
 * https://pypi.org/project/cmakelang
 * https://github.com/cheshirekow/cmake_format

This is a cherry-pick of commit c317fe31114d92d05d44bf98c9b559edf4656b9c
from branch 'libpng18'.
2024-10-12 19:37:50 +03:00
..

CMake Files, Lists and Scripts for the PNG Reference Library

  • Copyright (c) 2018-2024 Cosmin Truta.
  • Copyright (c) 2007-2018 Glenn Randers-Pehrson.
  • Originally written by Christian Ehrlicher, 2007.

Use, modification and distribution of the CMake files in the libpng distribution are subject to the same licensing terms and conditions as libpng. Please see the copyright notice in png.h or visit http://libpng.org/pub/png/src/libpng-LICENSE.txt

File List

CMakeLists.txt                 ==>  The main CMake lists file
scripts/cmake/AUTHORS.md       ==>  The Authors file
scripts/cmake/README.md        ==>  This file
scripts/cmake/PNGConfig.cmake  ==>  Config file for FindPNG
scripts/cmake/genchk.cmake.in  ==>  Template for genchk.cmake
scripts/cmake/genout.cmake.in  ==>  Template for genout.cmake
scripts/cmake/gensrc.cmake.in  ==>  Template for gensrc.cmake
scripts/cmake/test.cmake.in    ==>  Template for test.cmake

Acknowledgements

See the accompanying file scripts/cmake/AUTHORS.md for the list of Contributing Authors.

If you are a Contributing Author, please make sure that you are being acknowledged.