- Source code: cmake/modules/PHP/Extension.cmake
This module provides commands to configure PHP extensions.
Load this module in a PHP extension's project with:
include(PHP/Extension)Configures PHP extension:
php_extension(<php-extension-name>)The arguments are:
<php-extension-name>- lowercase name of the PHP extension being configured.
This command adjusts configuration in the current directory for building PHP extension and prepares its target for using it with PHP.
Configuring PHP extension:
# ext/foo/CMakeLists.txt
include(PHP/Extension)
php_extension(foo)