basicaly I made a shell script which I need to run always when cmake finish configuration and its after generation phase (so when pbxproj is generated).
so far i tried add_custom_command() which does not do anything, or at least does not show it into xcode console what it has started. I also tried execute_process() which always tries to run JUST before cmake finishes generation of the pbxproj archive.
what options do I have to automate the process and not needing to run this shell script always manualy?
Requests for a post-generation hook, such as yours, do come up from time to time. However, CMake currently intentionally doesn’t support such a feature, so unfortunately, there is no way to do this in a reliable & automatic way.
can at least post-configure script shell file run async? so in the WORST case scenarion i will have some sleep time to wait 1min after configuration to do its magic (which will be far after generation)? or execute_process() works only sync so it waits for the shell to finish?
at the end via execute_process() i opened shell script file which inside also opens another terminal windows with their own script files which run on their own, so execute_process() does not wait for it to finish as the main termianl window finished…
in each own shell script file there is a sleeper waiting for *.pbxproj appear and then do some modification which Cmake can not do on its own