TABLE OF CONTENTS
cmake.cygclass
[ Top ] [ Cygclasses ] [ Cygclasses ]
SYNOPSIS
inherit cmake
DESCRIPTION
CMake is a build system which can be used instead of autoconf and automake. The build configuration and commands are written as CMakeLists.txt files in each directory, which cmake uses to run configuration tests and create Makefiles, config headers, and other files.
CMake can be used for a wide variety of software, but is most commonly used in KDE4 and some Qt4 packages.
INHERITED BY
kde4.cygclass, opensync.cygclass, qt4-cmake.cygclass
cygcmake
[ Top ] [ cmake.cygclass ] [ Compile Functions ]
SYNOPSIS
cygcmake [OPTIONS]
DESCRIPTION
Runs cmake to configure the package. cygcmake passes cmake the flags necessary to install the package into the standard prefix and according to the Filesystem Hierarchy Standard and the Cygwin package guidelines. In addition, all arguments to cygcmake are passed to cmake, followed by CYGCMAKE_ARGS, if set.
NOTES
- cygcmake should be run in or under $B, as it defines the build directory of the package and creates numerous files.
- If the top-level CMakeLists.txt is not in $S, see CYGCMAKE_SOURCE.
- Packages configured with cygcmake use cygmake to compile.
REQUIRES
cmake
CYGCMAKE_SOURCE
[ Top ] [ cygcmake ] [ Variables ]
DESCRIPTION
Set this variable to the directory containing the top-level CMakeLists.txt. This is only necessary when the top-level CMakeLists.txt is not in $S and cygcmake is not being run in the same subdirectory of $B which under $S contains the top-level CMakeLists.txt. (IOW if the top-level CMakeLists.txt is in $S/unix and cygcmake is run from $B/unix, setting CYGCMAKE_SOURCE would not be necessary.)
CYGCMAKE_ARGS
[ Top ] [ cygcmake ] [ Variables ]
DESCRIPTION
Additional flags to pass to cmake during cygcmake.
NOTES
Flags in CYGCMAKE_ARGS follow, and therefore override, flags passed by default and as arguments to cygcmake.
src_compile (cmake)
[ Top ] [ cmake.cygclass ] [ Overloads ]
DEFINITION
src_compile() { cd ${B} cygcmake cygmake }