1Alien::cmake3(3)      User Contributed Perl Documentation     Alien::cmake3(3)
2
3
4

NAME

6       Alien::cmake3 - Find or download or build cmake 3 or better
7

VERSION

9       version 0.04
10

SYNOPSIS

12       From Perl:
13
14        use Alien::cmake3;
15        use Env qw( @PATH );
16
17        unshift @PATH, Alien::cmake->bin_dir;
18        system 'cmake', ...;
19
20       From alienfile
21
22        use alienfile;
23
24        share {
25          # Build::CMake plugin pulls in Alien::cmake3 automatically
26          plugin 'Build::CMake';
27          build [
28            # this is the default build step, if you do not specify one.
29            [ '%{cmake}', -G => '%{cmake_generator}', '-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true', '-DCMAKE_INSTALL_PREFIX:PATH=%{.install.prefix}', '.' ],
30            '%{make}',
31            '%{make} install',
32          ];
33        };
34

DESCRIPTION

36       This Alien distribution provides an external dependency on the build
37       tool "cmake" version 3.0.0 or better.  "cmake" is a popular alternative
38       to autoconf.
39

METHODS

41   bin_dir
42        my @dirs = Alien::cmake3->bin_dir;
43
44       List of directories that need to be added to the "PATH" in order for
45       "cmake" to work.
46
47   exe
48        my $exe = Alien::cmake3->exe;
49
50       The name of the "cmake" executable.
51

HELPERS

53   cmake3
54        %{cmake3}
55
56       The name of the <cmake> executable.
57

SEE ALSO

59       Alien::Build::Plugin::Build::CMake
60           Alien::Build plugin for "cmake"  This will automatically pull in
61           Alien::cmake3 if you need it.
62
63       Alien::CMake
64           This is an older distribution that provides an alienized "cmake".
65           It is different in these ways:
66
67           Alien::cmake3 is based on alienfile and Alien::Build
68               It integrates better with Aliens that are based on that
69               technology.
70
71           Alien::cmake3 will provide version 3.0.0 or better
72               Alien::CMake will provide 2.x.x on some platforms where more
73               recent binaries are not available.
74
75           Alien::cmake3 will install on platforms where there is no system
76           "cmake" and no binary "cmake" provided by cmake.org
77               It does this by building "cmake" from source.
78
79           Alien::cmake3 is preferred
80               In the opinion of the maintainer of both Alien::cmake3 and
81               Alien::CMake for these reasons.
82

AUTHOR

84       Graham Ollis <plicease@cpan.org>
85
87       This software is copyright (c) 2017 by Graham Ollis.
88
89       This is free software; you can redistribute it and/or modify it under
90       the same terms as the Perl 5 programming language system itself.
91
92
93
94perl v5.28.0                      2017-10-05                  Alien::cmake3(3)
Impressum