Avoiding global variables using `target_sources`
