I have a very simple modular system that lets me hotswap a library while my program is running, think something like the unity editor when you make a new component. Now i would like to find a way to have this library compile itself from within my editor program, just for convienece’s sake.
Right now im just doing a system() call to tell cmake to compile the library, this seems quite undesireable, system() calls should usually be avoided as far as i know. Is there a more elegant way to do this or am i stuck sticking to a system call?