Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 823 Bytes

File metadata and controls

40 lines (25 loc) · 823 Bytes

PHP/Extension

This module provides commands to configure PHP extensions.

Load this module in a PHP extension's project with:

include(PHP/Extension)

Commands

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.

Examples

Configuring PHP extension:

# ext/foo/CMakeLists.txt

include(PHP/Extension)
php_extension(foo)