areg-sdk
areg-sdk copied to clipboard
CMake changes to generate code
Description:
The projects, which use Service Interface document file (files with extension .siml
) contain generated codes, which are manually integrated in the projects by CMakeLists.txt files. Since these files are generated and the sources are kind of fixed, it makes sense to modify the CMakeLists.txt file to generate and compile files during build.
Required:
- Modify the CMake to generate and build static libraries from Service Interface document files. Something like
addServiceInterface(myproject, myproject/HelloWordl.siml)
, where themyproject
is the name of the project and static library andmyproject/HelloWordl.siml
is the relative path to the Service Interface document. - There should be possibility to link the static library with the target binary, something like
linkProject(target, myproject)
. - Modify the CMake build to add an option that will only generate files and create MSVC project files.
Note: The description might be not really clear. Please start the discussion here and ask questions to @aregtech before starting modifying.