Migrate python script to cmake for c++ builds - [ ] Write cmake function - [ ] Add CMakeList.txt to use it with ExternalProject_Add