Alien::Build::Plugin::Build::CMake - CMake plugin for Alien::Build
version 0.04_01
use alienfile; share { 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 plugin helps build alienized projects that use cmake. The intention is to make this a core Alien::Build plugin if/when it becomes stable enough.
cmake
Returns the cmake generator according to your Perl's make.
make
Returns true if your Perls make appears to be dmake.
dmake
This plugin replaces the default cmake helper with the one that comes from Alien::cmake3.
This is the appropriate cmake generator to use based on the make used by your Perl. This is frequently Unix Makefiles. One place where it may be different is if your Windows Perl uses nmake, which comes with Visual C++.
Unix Makefiles
nmake
This plugin may replace the default make helper if the default make is not supported by cmake. This is most often an issue with older versions of Strawberry Perl which used dmake. On Perls that use dmake, this plugin will search for GNU Make in the PATH, and if it can't be found will fallback on using Alien::gmake.
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::Build::Plugin::Build::CMake, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alien::Build::Plugin::Build::CMake
CPAN shell
perl -MCPAN -e shell install Alien::Build::Plugin::Build::CMake
For more information on module installation, please visit the detailed CPAN module installation guide.