assem: move to cmake