KasperskyOS Community Edition 1.3

add_kpa_package()

This command is declared in the file /opt/KasperskyOS-Community-Edition-<version>/toolchain/share/cmake/Modules/platform/kpa.cmake.

add_kpa_package(KPA_TARGET_NAME ...)

The command creates a CMake target for building the KPA package. When building this target, the build process automatically creates the KPA package manifest and the KPA package, which includes all components that were added to this target using the CMake command add_kpa_component().

Parameters:

  • KPA_TARGET_NAME – name of the CMake target. Required parameter.
  • MANIFEST_V – version of the KPA package manifest. Required parameter. It must be set to 2.
  • VERSION – version of the KPA package. The default value is PROJECT_VERSION.
  • ID – ID of the KPA package. The default value is KPA_TARGET_NAME.
  • DEVELOPER_ID – identifier of the developer. The default value is "unspecified".
  • DONT_VERIFY—if this parameter is defined, verification of the presence of all KPA package components specified in its manifest and the absence of unspecified components, and calculation of the checksums of KPA package components and their comparison with those specified in the KPA package manifest will not be performed.

Properties of the created CMake target:

  • KPA_OUTPUT_DIR – directory in which the KPA package will be put.
  • KPA_OUTPUT_NAME – name of the KPA file without the file extension. The default value is ${DEVELOPER_ID}.${ID}.

Example call:

include (platform/kpa) add_kpa_package (Hello.kpa ALL ID "hello" DEVELOPER_ID test_dev MANIFEST_V "2") set_target_properties(Hello.kpa PROPERTIES KPA_OUTPUT_NAME "hello")