07 Jan 2018 18:47:29 UTC
- Distribution: Makefile-Update
- Module version: 0.4
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (0)
- Testers (615 / 34 / 0)
- KwaliteeBus factor: 0
- 94.34% Coverage
- License: perl_5
- Activity24 month
- Download (25.04KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionVADZ Vadim Zeitlinand 1 contributors
- Vadim Zeitlin
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.
Module Install Instructions
To install Makefile::Update, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Makefile::Update
For more information on module installation, please visit the detailed CPAN module installation guide.