Alien::cmake3 - Find or download or build cmake 3 or better
version 0.04
From Perl:
use Alien::cmake3; use Env qw( @PATH ); unshift @PATH, Alien::cmake->bin_dir; system 'cmake', ...;
From alienfile
use alienfile; share { # Build::CMake plugin pulls in Alien::cmake3 automatically plugin 'Build::CMake'; build [ # this is the default build step, if you do not specify one. [ '%{cmake}', -G => '%{cmake_generator}', '-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true', '-DCMAKE_INSTALL_PREFIX:PATH=%{.install.prefix}', '.' ], '%{make}', '%{make} install', ]; };
This Alien distribution provides an external dependency on the build tool cmake version 3.0.0 or better. cmake is a popular alternative to autoconf.
cmake
my @dirs = Alien::cmake3->bin_dir;
List of directories that need to be added to the PATH in order for cmake to work.
PATH
my $exe = Alien::cmake3->exe;
The name of the cmake executable.
%{cmake3}
The name of the <cmake> executable.
Alien::Build plugin for cmake This will automatically pull in Alien::cmake3 if you need it.
This is an older distribution that provides an alienized cmake. It is different in these ways:
It integrates better with Aliens that are based on that technology.
Alien::CMake will provide 2.x.x on some platforms where more recent binaries are not available.
It does this by building cmake from source.
In the opinion of the maintainer of both Alien::cmake3 and Alien::CMake for these reasons.
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2017 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Alien::cmake3, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alien::cmake3
CPAN shell
perl -MCPAN -e shell install Alien::cmake3
For more information on module installation, please visit the detailed CPAN module installation guide.