Cosmin Truta 2a845ff819 build: Move portions from the main CMake file to separate modules
In preparation for the upcoming changes in the build system, any parts
of the CMake file that are unlikely to be affected should be moved out
of the way. This should facilitate an easier resync between the branch
'libpng16' and its successor(s).

Specifically:
 * Move the functions `generate_chk`, `generate_out`, `generate_source`
   and `generate_copy` to scripts/cmake/PNGGenConfig.cmake.
 * Move the function `png_add_test` to scripts/cmake/PNGTest.cmake.
 * Leave the function `create_symlink` in place, but add a TODO note.
   As we raised the minimum required CMake version to 3.14, we should
   now be able to use CMake's built-in function instead.
2025-01-06 17:09:10 +02: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.