I'm working on a project in C/C++ buildable with cmake... During build process I've to build configurations (headers and sources) based on some configuration file written in json format.
I reached the prefixed result adopting a script file in javascript and in the cmake I placed this command:
add_custom_target( BuildStructure ALL node ${CMAKE_CURRENT_SOURCE_DIR}/util/buildProjectStructCfg.js ...)
Ok, it is working fine but...
Is a portable solution?
Is it possible to try better solutions?
I adopted javascript because to handle json files for me is the best...