cmake: in test macro, add rpath