add_nk_edl()
add_nk_edl()
This command is declared in the file /opt/KasperskyOS-Community-Edition-<version>/toolchain/share/cmake/Modules/platform/nk2.cmake.
add_nk_edl(NAME EDL_FILE ...)
This command creates a CMake target for generating a *.edl.cpp.h file for a defined EDL file using the nkppmeta compiler. The command also creates a library containing the transport code for the server or client program. To link to this library, use the bind_nk_targets() command.
The *.edl.cpp.h file contains the tree of embedded components and endpoints provided by the process class described in the EDL file.
Parameters:
NAME— name of theCMaketarget. Required parameter.EDL_FILE— path to the EDL file. Required parameter.NK_MODULE– parameter in which you need to specify the name of the process class, excluding the name of the EDL file. For example, if the process class name in the EDL description is defined askl.core.NameServer, thekl.corevalue must be passed in theNK_MODULEparameter.LANG– parameter in which you need to specify theCXXvalue.
Example call:
add_nk_edl (SERVER_EDL "${CMAKE_SOURCE_DIR}/resources/Server.edl"
NK_MODULE "example"
LANG "CXX")
Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.