NAME
Makefile::Update::CMakefile - Update lists of files in CMake variables.
VERSION
version 0.4
SYNOPSIS
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);
FUNCTIONS
update_cmakefile
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.
SEE ALSO
Makefile::Update
AUTHOR
Vadim Zeitlin <vz-cpan@zeitlins.org>
COPYRIGHT AND LICENSE
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.