Add BUILD_CORE_ONLY option for cmake command