[CMake] Use target oriented design for bmalloc