Makefile::Update::CMakefile - Update lists of files in CMake variables.
This can be used to update the contents of a variable containing a list of files in a CMake file.
use Makefile::Update::CMakefile; Makefile::Update::upmake('CMakeLists.txt', \&update_cmakefile, $vars);
Update variable definitions in a CMake file with the data from the hash ref containing all the file lists.
The variables are supposed to be defined in the following format:
set(var foo bar baz )
Notably, each file has to be on its own line, including the first one.
Takes the (open) file handles of the files to read and to write and the file lists hash ref as arguments.
Returns 1 if any changes were made.
Vadim Zeitlin <firstname.lastname@example.org>
This software is copyright (c) 2015 by Vadim Zeitlin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.