Core/Cmake: Allow settings to detach custom scripts
Allow to remove coupled custom scripts to regular scripts on build. Meaning, if you change custom scripts and have this enabled, only custom scripts are changed and custom scripts are not included.
Original Code by @LilleCarl.