cmake: add target helper functions