add catmake convenience function