pyctest.cmake
¶
Direct interface to CMake executable:
python -m pyctest.cmake [ARG [ARG]]
-
pyctest.cmake.
CMake
(*args, **kwargs)[source]¶ Function for direct access to CMake
Parameters: - args (list) – List of CMake arguments (added to cmd-line in order after kwargs)
- kwargs (dict) – List of CMake variable definitions (added before args)
Example
pyctest.cmake.CMake("--build", os.getcwd(), "--target", "all")
_kwargs['CMAKE_BUILD_TYPE'] = 'Debug' _kwargs['CMAKE_INSTALL_PREFIX'] = '/usr/local' _kwargs['BUILD_SHARED_LIBS'] = 'ON' _args = [ os.path.dirname(os.getcwd()), '-G', 'Ninja' ] pyctest.cmake.CMake(_args, _kwargs)